common/environment/build-style/go.sh: allow setting CGO_ENABLED from templates

This commit is contained in:
Tiago Carvalho 2022-12-18 16:25:05 +00:00 committed by classabbyamp
parent b7b367c5f5
commit 6bbd4166a0
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ export CGO_CFLAGS="$CFLAGS"
export CGO_CPPFLAGS="$CPPFLAGS"
export CGO_CXXFLAGS="$CXXFLAGS"
export CGO_LDFLAGS="$LDFLAGS"
export CGO_ENABLED=1
export CGO_ENABLED="${CGO_ENABLED:-1}"
export GO111MODULE=auto
case "$XBPS_TARGET_MACHINE" in
*-musl) export GOCACHE="${XBPS_HOSTDIR}/gocache-muslc" ;;