diff --git a/common/environment/build-style/go.sh b/common/environment/build-style/go.sh index 450c9f3c77..b3d42321a3 100644 --- a/common/environment/build-style/go.sh +++ b/common/environment/build-style/go.sh @@ -3,6 +3,7 @@ if [ "$CROSS_BUILD" ]; then hostmakedepends+=" go-cross-linux" fi nostrip=yes +nopie=yes case "$XBPS_TARGET_MACHINE" in armv6*) export GOARCH=arm; export GOARM=6;; diff --git a/srcpkgs/go/template b/srcpkgs/go/template index b3d3e41ef5..d5c3070599 100644 --- a/srcpkgs/go/template +++ b/srcpkgs/go/template @@ -16,6 +16,7 @@ checksum="299a6fd8f8adfdce15bc06bde926e7b252ae8e24dd5b16b7d8791ed79e7b5e9b nostrip=yes noverifyrdeps=yes +nopie=yes _go_targetarch() { local hostarch targetarch