build style go.sh: split gocache for glibc/muslc

Closes: #2542

Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
Jürgen Buchmüller 2018-09-11 12:38:46 +02:00
parent f57cb99bb8
commit e9cbfacb5a
No known key found for this signature in database
GPG Key ID: 6764EC32352D0647
1 changed files with 4 additions and 1 deletions

View File

@ -17,4 +17,7 @@ export CGO_CPPFLAGS="$CPPFLAGS"
export CGO_CXXFLAGS="$CXXFLAGS"
export CGO_LDFLAGS="$LDFLAGS"
export CGO_ENABLED=1
export GOCACHE="${XBPS_HOSTDIR}/gocache"
case "$XBPS_TARGET_MACHINE" in
*-musl) export GOCACHE="${XBPS_HOSTDIR}/gocache-muslc" ;;
*) export GOCACHE="${XBPS_HOSTDIR}/gocache-glibc" ;;
esac