common/environment/build-style/go.sh: fix internal linking on i686

This commit is contained in:
classabbyamp 2022-08-10 15:17:27 -04:00
parent fc49c6e396
commit 5912b3f5b7
No known key found for this signature in database
GPG Key ID: 6BE0755918A4C7F5

View File

@ -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