From e9cbfacb5aa9a02744350bb3f0eab158f11bf6f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= <pullmoll@t-online.de> Date: Tue, 11 Sep 2018 12:38:46 +0200 Subject: [PATCH] build style go.sh: split gocache for glibc/muslc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: #2542 Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de> --- common/environment/build-style/go.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/environment/build-style/go.sh b/common/environment/build-style/go.sh index 040b4894ad..871870a684 100644 --- a/common/environment/build-style/go.sh +++ b/common/environment/build-style/go.sh @@ -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