From 7f29c932a96c918f0270649596d2baebf61c2a88 Mon Sep 17 00:00:00 2001 From: Leonid Plyushch Date: Mon, 22 Jul 2019 03:47:32 +0300 Subject: [PATCH] build-package.sh: set $LDFLAGS for CGO like we do for android-7 packages --- 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 9084965a3..7423bcd6f 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_LDFLAGS="$LDFLAGS" export CGO_CFLAGS="-I$TERMUX_PREFIX/include" if [ "$TERMUX_ARCH" = "arm" ]; then export GOARCH=arm