summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/go/go-cross.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/go/go-cross.inc')
-rw-r--r--meta/recipes-devtools/go/go-cross.inc2
1 files changed, 2 insertions, 0 deletions
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}"
10export GOOS = "${TARGET_GOOS}" 10export GOOS = "${TARGET_GOOS}"
11export GOARCH = "${TARGET_GOARCH}" 11export GOARCH = "${TARGET_GOARCH}"
12export GOARM = "${TARGET_GOARM}" 12export GOARM = "${TARGET_GOARM}"
13export GO386 = "${TARGET_GO386}"
13export GOROOT_BOOTSTRAP = "${STAGING_LIBDIR_NATIVE}/go" 14export GOROOT_BOOTSTRAP = "${STAGING_LIBDIR_NATIVE}/go"
14export GOROOT_FINAL = "${libdir}/go" 15export GOROOT_FINAL = "${libdir}/go"
15export CGO_ENABLED = "1" 16export CGO_ENABLED = "1"
@@ -37,6 +38,7 @@ here=\`dirname \$0\`
37export GOARCH="${TARGET_GOARCH}" 38export GOARCH="${TARGET_GOARCH}"
38export GOOS="${TARGET_GOOS}" 39export GOOS="${TARGET_GOOS}"
39export GOARM="\${GOARM:-${TARGET_GOARM}}" 40export GOARM="\${GOARM:-${TARGET_GOARM}}"
41export GO386="\${GO386:-${TARGET_GO386}}"
40\$here/../../lib/${CROSS_TARGET_SYS_DIR}/go/bin/$1 "\$@" 42\$here/../../lib/${CROSS_TARGET_SYS_DIR}/go/bin/$1 "\$@"
41END 43END
42 chmod +x ${D}${bindir}/$2 44 chmod +x ${D}${bindir}/$2