From 69b49cfba6d55055ef5165c599c0a6c1c99f5491 Mon Sep 17 00:00:00 2001 From: q66 Date: Thu, 17 Dec 2020 00:12:37 +0100 Subject: [PATCH] build-style/go: restrict archs for gccgo env too this is because some archs lack support in gccgo, and some are not integrated yet in our toolchains --- 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 3f83013d4f7..f3b4514d457 100644 --- a/common/environment/build-style/go.sh +++ b/common/environment/build-style/go.sh @@ -7,6 +7,11 @@ if [ -z "$hostmakedepends" -o "${hostmakedepends##*gcc-go-tools*}" ]; then nopie=yes else # gccgo compiler + if [ -z "$archs" ]; then + # we have support for these in our gcc + # ppcle is missing, and mips doesn't have go in cross yet + archs="aarch64* armv[567]* i686* x86_64* ppc64* ppc ppc-musl" + fi if [ "$CROSS_BUILD" ]; then # target compiler to use; otherwise it'll just call gccgo export GCCGO="${XBPS_CROSS_TRIPLET}-gccgo"