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