Browse Source

setup_golang: set CGO_CFLAGS=-I$TERMUX_PREFIX/include

android-5
Henrik Grimler 6 years ago
committed by Leonid Plyushch
parent
commit
1643c84658
No known key found for this signature in database GPG Key ID: 45F2964132545795
  1. 1
      scripts/build/setup/termux_setup_golang.sh

1
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

Loading…
Cancel
Save