common/build-style/go.sh: update go build style for go1.21.0
This commit is contained in:
parent
9499a43f0a
commit
4c22fd9b48
2 changed files with 13 additions and 1 deletions
|
@ -39,6 +39,10 @@ export CGO_CXXFLAGS="$CXXFLAGS"
|
|||
export CGO_LDFLAGS="$LDFLAGS"
|
||||
export CGO_ENABLED="${CGO_ENABLED:-1}"
|
||||
export GO111MODULE=auto
|
||||
export GOTOOLCHAIN=local
|
||||
export GOPROXY="https://proxy.golang.org,direct"
|
||||
export GOSUMDB="sum.golang.org"
|
||||
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
*-musl) export GOCACHE="${XBPS_HOSTDIR}/gocache-muslc" ;;
|
||||
*) export GOCACHE="${XBPS_HOSTDIR}/gocache-glibc" ;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue