summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/go
diff options
context:
space:
mode:
authorMatt Madison <matt@madison.systems>2018-04-21 06:19:37 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-04-23 17:26:05 +0100
commit00fe24fe8cbec81362e04c4c56ff4d33384cf72c (patch)
tree282ca78a8f67a16b3746ebed2be921eacc093f50 /meta/recipes-devtools/go
parentd331af97a0219a34b412f61dc429af58262f088c (diff)
downloadpoky-00fe24fe8cbec81362e04c4c56ff4d33384cf72c.tar.gz
go-runtime_1.9: pass BUILD_ flags to cgo for host-side build
When running the make.bash script to build the host-side tools, make sure that cgo is using CFLAGS and LDFLAGS for the build host, rather than those for the target. [YOCTO #12704] (From OE-Core rev: b1783e423444e0432d2653fbd00c18d119d82647) 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')
-rw-r--r--meta/recipes-devtools/go/go-runtime_1.9.bb2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-devtools/go/go-runtime_1.9.bb b/meta/recipes-devtools/go/go-runtime_1.9.bb
index a99cc30f63..d5279ea897 100644
--- a/meta/recipes-devtools/go/go-runtime_1.9.bb
+++ b/meta/recipes-devtools/go/go-runtime_1.9.bb
@@ -11,7 +11,7 @@ do_compile() {
11 export CC=$BUILD_CC 11 export CC=$BUILD_CC
12 12
13 cd src 13 cd src
14 ./make.bash --host-only 14 CGO_CFLAGS="${BUILD_CFLAGS}" CGO_LDFLAGS="${BUILD_LDFLAGS}" ./make.bash --host-only
15 cp ${B}/pkg/tool/${BUILD_GOTUPLE}/go_bootstrap ${B} 15 cp ${B}/pkg/tool/${BUILD_GOTUPLE}/go_bootstrap ${B}
16 rm -rf ${B}/pkg/${TARGET_GOTUPLE} 16 rm -rf ${B}/pkg/${TARGET_GOTUPLE}
17 ./make.bash --target-only 17 ./make.bash --target-only