mirror of
https://git.yoctoproject.org/poky
synced 2026-04-27 21:32:13 +02:00
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. (From OE-Core rev: eba5fd5f594d65d311fa7564fa4b243248cb212a) Signed-off-by: Paul Barker <pbarker@toganlabs.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
68e77cfb8a
commit
001f8ee0ad
@@ -41,6 +41,7 @@ native_goroot=\`readlink -f \$here/../../lib/${TARGET_SYS}/go\`
|
||||
export GOARCH="${TARGET_GOARCH}"
|
||||
export GOOS="${TARGET_GOOS}"
|
||||
test -n "\$GOARM" || export GOARM="${TARGET_GOARM}"
|
||||
test -n "\$GO386" || export GO386="${TARGET_GO386}"
|
||||
export GOTOOLDIR="\$native_goroot/pkg/tool/${HOST_GOTUPLE}"
|
||||
test -n "\$GOROOT" || export GOROOT="\$OECORE_TARGET_SYSROOT/${target_libdir}/go"
|
||||
\$here/../../lib/${TARGET_SYS}/go/bin/$1 "\$@"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -7,6 +7,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 GO_TARGET_INSTALL = "std"
|
||||
|
||||
@@ -7,6 +7,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"
|
||||
|
||||
Reference in New Issue
Block a user