From 0dbb860924fc157880b52d8e08bad3c6c6b019b8 Mon Sep 17 00:00:00 2001 From: Matt Madison Date: Tue, 14 Nov 2017 09:20:15 -0800 Subject: go: ensure use of BUILD_CC when building bootstrap tools For cross-canadian builds, we were accidentally using the crosssdk C compiler when building the Go compiler bootstrap. Add a patch to the make script to let us use BUILD_CC, and prepend do_compile to set it in the local environment to ensure that the trailing blank gets stripped, since that confuses Go. [YOCTO #12341] Signed-off-by: Matt Madison Signed-off-by: Ross Burton --- meta/recipes-devtools/go/go-common.inc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'meta/recipes-devtools/go/go-common.inc') diff --git a/meta/recipes-devtools/go/go-common.inc b/meta/recipes-devtools/go/go-common.inc index ce1eb86812..9af68738a6 100644 --- a/meta/recipes-devtools/go/go-common.inc +++ b/meta/recipes-devtools/go/go-common.inc @@ -20,3 +20,7 @@ B = "${S}" INHIBIT_PACKAGE_DEBUG_SPLIT = "1" SSTATE_SCAN_CMD = "true" + +do_compile_prepend() { + BUILD_CC=${BUILD_CC} +} -- cgit v1.2.3