summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/go/go-common.inc
diff options
context:
space:
mode:
authorMatt Madison <matt@madison.systems>2017-11-14 09:20:15 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-12-02 11:25:33 +0000
commitf866673f874809a222d5efcc0905c08d975024ec (patch)
treec3a30b770449d4fee27f10d7e95573bb5569fb94 /meta/recipes-devtools/go/go-common.inc
parent7b065af680f1b26cbebebb2693a9df7695b6d903 (diff)
downloadpoky-f866673f874809a222d5efcc0905c08d975024ec.tar.gz
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] (From OE-Core rev: 0dbb860924fc157880b52d8e08bad3c6c6b019b8) Signed-off-by: Matt Madison <matt@madison.systems> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/go/go-common.inc')
-rw-r--r--meta/recipes-devtools/go/go-common.inc4
1 files changed, 4 insertions, 0 deletions
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}"
20 20
21INHIBIT_PACKAGE_DEBUG_SPLIT = "1" 21INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
22SSTATE_SCAN_CMD = "true" 22SSTATE_SCAN_CMD = "true"
23
24do_compile_prepend() {
25 BUILD_CC=${BUILD_CC}
26}