From 5912b3f5b7fc5e5c7656f617471f47ae45fd56a1 Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Wed, 10 Aug 2022 15:17:27 -0400 Subject: [PATCH] common/environment/build-style/go.sh: fix internal linking on i686 --- common/environment/build-style/go.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/environment/build-style/go.sh b/common/environment/build-style/go.sh index afa9082c927..a7b7dd81918 100644 --- a/common/environment/build-style/go.sh +++ b/common/environment/build-style/go.sh @@ -43,3 +43,8 @@ case "$XBPS_TARGET_MACHINE" in *-musl) export GOCACHE="${XBPS_HOSTDIR}/gocache-muslc" ;; *) export GOCACHE="${XBPS_HOSTDIR}/gocache-glibc" ;; esac + +case "$XBPS_TARGET_MACHINE" in + # https://go.dev/cl/421935 + i686*) export CGO_CFLAGS="$CGO_CFLAGS -fno-stack-protector" ;; +esac