common/environment/build-style/go.sh: allow setting CGO_ENABLED from templates
This commit is contained in:
parent
b7b367c5f5
commit
6bbd4166a0
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ export CGO_CFLAGS="$CFLAGS"
|
||||||
export CGO_CPPFLAGS="$CPPFLAGS"
|
export CGO_CPPFLAGS="$CPPFLAGS"
|
||||||
export CGO_CXXFLAGS="$CXXFLAGS"
|
export CGO_CXXFLAGS="$CXXFLAGS"
|
||||||
export CGO_LDFLAGS="$LDFLAGS"
|
export CGO_LDFLAGS="$LDFLAGS"
|
||||||
export CGO_ENABLED=1
|
export CGO_ENABLED="${CGO_ENABLED:-1}"
|
||||||
export GO111MODULE=auto
|
export GO111MODULE=auto
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
*-musl) export GOCACHE="${XBPS_HOSTDIR}/gocache-muslc" ;;
|
*-musl) export GOCACHE="${XBPS_HOSTDIR}/gocache-muslc" ;;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue