summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/go-bootstrap/go-bootstrap.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/go-bootstrap/go-bootstrap.mk b/package/go-bootstrap/go-bootstrap.mk
index 47f5013232..29f2b03335 100644
--- a/package/go-bootstrap/go-bootstrap.mk
+++ b/package/go-bootstrap/go-bootstrap.mk
@@ -19,11 +19,14 @@ HOST_GO_BOOTSTRAP_DEPENDENCIES = toolchain
HOST_GO_BOOTSTRAP_ROOT = $(HOST_DIR)/usr/lib/go-$(GO_BOOTSTRAP_VERSION)
+# The go build system is not compatable with ccache, so use HOSTCC_NOCCACHE
+# here. See https://github.com/golang/go/issues/11685.
HOST_GO_BOOTSTRAP_MAKE_ENV = \
GOOS=linux \
GOROOT_FINAL="$(HOST_GO_BOOTSTRAP_ROOT)" \
GOROOT="$(@D)" \
GOBIN="$(@D)/bin" \
+ CC=$(HOSTCC_NOCCACHE) \
CGO_ENABLED=0
define HOST_GO_BOOTSTRAP_BUILD_CMDS
OpenPOWER on IntegriCloud