diff --git a/common/environment/build-style/go.sh b/common/environment/build-style/go.sh index a0cf330d600..3f83013d4f7 100644 --- a/common/environment/build-style/go.sh +++ b/common/environment/build-style/go.sh @@ -1,4 +1,4 @@ -if [ "${hostmakedepends##*gcc-go-tools*}" ]; then +if [ -z "$hostmakedepends" -o "${hostmakedepends##*gcc-go-tools*}" ]; then # gc compiler if [ -z "$archs" ]; then archs="aarch64* armv[567]* i686* x86_64* ppc64le*"