From eba5fd5f594d65d311fa7564fa4b243248cb212a Mon Sep 17 00:00:00 2001 From: Paul Barker Date: Fri, 13 Oct 2017 19:25:29 +0000 Subject: go: Export correct GO386 value for target When compiling go code for the target we need to ensure that GO386 is exported and set appropriately. This controls whether sse/sse2 instructions are used to implement floating-point operations or not. Signed-off-by: Paul Barker Signed-off-by: Ross Burton --- meta/recipes-devtools/go/go-cross.inc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'meta/recipes-devtools/go/go-cross.inc') diff --git a/meta/recipes-devtools/go/go-cross.inc b/meta/recipes-devtools/go/go-cross.inc index dac0dfd137..3ac7211bc3 100644 --- a/meta/recipes-devtools/go/go-cross.inc +++ b/meta/recipes-devtools/go/go-cross.inc @@ -10,6 +10,7 @@ export GOHOSTARCH = "${BUILD_GOARCH}" export GOOS = "${TARGET_GOOS}" export GOARCH = "${TARGET_GOARCH}" export GOARM = "${TARGET_GOARM}" +export GO386 = "${TARGET_GO386}" export GOROOT_BOOTSTRAP = "${STAGING_LIBDIR_NATIVE}/go" export GOROOT_FINAL = "${libdir}/go" export CGO_ENABLED = "1" @@ -37,6 +38,7 @@ here=\`dirname \$0\` export GOARCH="${TARGET_GOARCH}" export GOOS="${TARGET_GOOS}" export GOARM="\${GOARM:-${TARGET_GOARM}}" +export GO386="\${GO386:-${TARGET_GO386}}" \$here/../../lib/${CROSS_TARGET_SYS_DIR}/go/bin/$1 "\$@" END chmod +x ${D}${bindir}/$2 -- cgit 1.2.3-korg