Set CGO_LDFLAGS="$LDFLAGS" for go packages

This should add DT_RUNPATH. See #3490.
This commit is contained in:
Fredrik Fornwall 2019-03-10 22:27:52 +01:00
parent 1a0c455f1c
commit 73ec719d77
2 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,6 @@ TERMUX_PKG_SRCURL=https://github.com/gohugoio/hugo/archive/v$TERMUX_PKG_VERSION.
termux_step_make() {
termux_setup_golang
export GOPATH=$TERMUX_PKG_BUILDDIR
export CGO_LDFLAGS="-L$TERMUX_PREFIX/lib"
cd $TERMUX_PKG_SRCDIR
go build \

View File

@ -3,6 +3,7 @@ termux_setup_golang() {
export GOOS=android
export CGO_ENABLED=1
export GO_LDFLAGS="-extldflags=-pie"
export CGO_LDFLAGS="$LDFLAGS"
if [ "$TERMUX_ARCH" = "arm" ]; then
export GOARCH=arm
export GOARM=7