summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/go/go-1.9.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:24:37 +0000
commit0dbb860924fc157880b52d8e08bad3c6c6b019b8 (patch)
tree5fa88ea0bfc90de8f8fbb7ec5c5e31245d391a58 /meta/recipes-devtools/go/go-1.9.inc
parent21d5a52d86a4090f7ddb1a9eb41bb143261f890e (diff)
downloadopenembedded-core-0dbb860924fc157880b52d8e08bad3c6c6b019b8.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] Signed-off-by: Matt Madison <matt@madison.systems> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/recipes-devtools/go/go-1.9.inc')
-rw-r--r--meta/recipes-devtools/go/go-1.9.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-devtools/go/go-1.9.inc b/meta/recipes-devtools/go/go-1.9.inc
index 60292651df..7f12241dc1 100644
--- a/meta/recipes-devtools/go/go-1.9.inc
+++ b/meta/recipes-devtools/go/go-1.9.inc
@@ -15,6 +15,7 @@ SRC_URI += "\
file://0007-ld-add-soname-to-shareable-objects.patch \
file://0008-make.bash-add-GOHOSTxx-indirection-for-cross-canadia.patch \
file://0009-cmd-go-buildmode-pie-forces-external-linking-mode-on.patch \
+ file://0010-make.bash-override-CC-when-building-dist-and-go_boot.patch \
"
SRC_URI_append_libc-musl = " file://set-external-linker.patch"