Browse Source

setup_golang: set CGO_CFLAGS=-I$TERMUX_PREFIX/include

emacs-27
Henrik Grimler 6 years ago
parent
commit
091718af31
  1. 1
      scripts/build/setup/termux_setup_golang.sh

1
scripts/build/setup/termux_setup_golang.sh

@ -4,6 +4,7 @@ termux_setup_golang() {
export CGO_ENABLED=1
export GO_LDFLAGS="-extldflags=-pie"
export CGO_LDFLAGS="$LDFLAGS"
export CGO_CFLAGS="-I$TERMUX_PREFIX/include"
if [ "$TERMUX_ARCH" = "arm" ]; then
export GOARCH=arm
export GOARM=7

Loading…
Cancel
Save