Set CGO_LDFLAGS="$LDFLAGS" for go packages
This should add DT_RUNPATH. See #3490.
This commit is contained in:
parent
1a0c455f1c
commit
73ec719d77
@ -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 \
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user