summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/go/go-common.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/go/go-common.inc')
-rw-r--r--meta/recipes-devtools/go/go-common.inc10
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/recipes-devtools/go/go-common.inc b/meta/recipes-devtools/go/go-common.inc
index 93a3d3b5fb..f18d928c70 100644
--- a/meta/recipes-devtools/go/go-common.inc
+++ b/meta/recipes-devtools/go/go-common.inc
@@ -27,6 +27,16 @@ export GOTMPDIR ?= "${WORKDIR}/go-tmp"
27GOTMPDIR[vardepvalue] = "" 27GOTMPDIR[vardepvalue] = ""
28export CGO_ENABLED = "1" 28export CGO_ENABLED = "1"
29 29
30export GOHOSTOS ?= "${BUILD_GOOS}"
31export GOHOSTARCH ?= "${BUILD_GOARCH}"
32export GOROOT_BOOTSTRAP ?= "${STAGING_LIBDIR_NATIVE}/go"
33export GOOS ?= "${TARGET_GOOS}"
34export GOARCH ?= "${TARGET_GOARCH}"
35export GOARM ?= "${TARGET_GOARM}"
36export GO386 ?= "${TARGET_GO386}"
37export GOMIPS ?= "${TARGET_GOMIPS}"
38export GOROOT_FINAL ?= "${libdir}/go"
39
30do_compile_prepend() { 40do_compile_prepend() {
31 BUILD_CC=${BUILD_CC} 41 BUILD_CC=${BUILD_CC}
32} 42}