diff options
author | Matt Madison <matt@madison.systems> | 2017-12-06 09:17:03 -0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-12-07 12:23:43 +0000 |
commit | 551d18e4b86e81a44d7b81613fb945fe27461a41 (patch) | |
tree | 2a4f53a973729750b5a53e4bcdad64b6af9d5647 /meta/recipes-devtools/go/go-common.inc | |
parent | 7030d5b4f9a802110a403572765a046af12d2acd (diff) | |
download | poky-551d18e4b86e81a44d7b81613fb945fe27461a41.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: 70278eb86bc5bcbe3fa53c62f971fa467f61e28f)
Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Ross Burton <ross.burton@intel.com>
(cherry picked from commit 0dbb860924fc157880b52d8e08bad3c6c6b019b8)
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
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.inc | 4 |
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 | ||
21 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | 21 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" |
22 | SSTATE_SCAN_CMD = "true" | 22 | SSTATE_SCAN_CMD = "true" |
23 | |||
24 | do_compile_prepend() { | ||
25 | BUILD_CC=${BUILD_CC} | ||
26 | } | ||