]> code.ossystems Code Review - openembedded-core.git/commit
go: ensure use of BUILD_CC when building bootstrap tools
authorMatt Madison <matt@madison.systems>
Wed, 6 Dec 2017 11:17:03 +0000 (09:17 -0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 7 Dec 2017 12:23:35 +0000 (12:23 +0000)
commit70278eb86bc5bcbe3fa53c62f971fa467f61e28f
treef7d3ce1f33bb209913b62313d1301df260f78239
parent21e339fe203fd4a31c9654924a38970f493dace1
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>
(cherry picked from commit 0dbb860924fc157880b52d8e08bad3c6c6b019b8)
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/go/go-1.9.inc
meta/recipes-devtools/go/go-1.9/0010-make.bash-override-CC-when-building-dist-and-go_boot.patch [new file with mode: 0644]
meta/recipes-devtools/go/go-common.inc