Browse Source

build-package.sh: set $LDFLAGS for CGO like we do for android-7 packages

android-5
Leonid Plyushch 6 years ago
parent
commit
7f29c932a9
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 GOOS=android
export CGO_ENABLED=1 export CGO_ENABLED=1
export GO_LDFLAGS="-extldflags=-pie" export GO_LDFLAGS="-extldflags=-pie"
export CGO_LDFLAGS="$LDFLAGS"
export CGO_CFLAGS="-I$TERMUX_PREFIX/include" export CGO_CFLAGS="-I$TERMUX_PREFIX/include"
if [ "$TERMUX_ARCH" = "arm" ]; then if [ "$TERMUX_ARCH" = "arm" ]; then
export GOARCH=arm export GOARCH=arm

Loading…
Cancel
Save