From 1643c8465840e7d9248bc4427d8c265586dbe7fe Mon Sep 17 00:00:00 2001 From: Henrik Grimler Date: Fri, 19 Jul 2019 10:22:31 +0200 Subject: [PATCH] setup_golang: set CGO_CFLAGS=-I$TERMUX_PREFIX/include --- scripts/build/setup/termux_setup_golang.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/build/setup/termux_setup_golang.sh b/scripts/build/setup/termux_setup_golang.sh index 85fee80f9..9084965a3 100644 --- a/scripts/build/setup/termux_setup_golang.sh +++ b/scripts/build/setup/termux_setup_golang.sh @@ -3,6 +3,7 @@ termux_setup_golang() { export GOOS=android export CGO_ENABLED=1 export GO_LDFLAGS="-extldflags=-pie" + export CGO_CFLAGS="-I$TERMUX_PREFIX/include" if [ "$TERMUX_ARCH" = "arm" ]; then export GOARCH=arm export GOARM=7