diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/go.bbclass | 2 | ||||
-rw-r--r-- | meta/recipes-devtools/go/go-common.inc | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/go.bbclass b/meta/classes/go.bbclass index aa54b4a08c..5c1fdd7d5f 100644 --- a/meta/classes/go.bbclass +++ b/meta/classes/go.bbclass | |||
@@ -2,6 +2,8 @@ inherit goarch | |||
2 | 2 | ||
3 | GO_PARALLEL_BUILD ?= "${@oe.utils.parallel_make_argument(d, '-p %d')}" | 3 | GO_PARALLEL_BUILD ?= "${@oe.utils.parallel_make_argument(d, '-p %d')}" |
4 | 4 | ||
5 | export GODEBUG = "gocachehash=1" | ||
6 | |||
5 | GOROOT:class-native = "${STAGING_LIBDIR_NATIVE}/go" | 7 | GOROOT:class-native = "${STAGING_LIBDIR_NATIVE}/go" |
6 | GOROOT:class-nativesdk = "${STAGING_DIR_TARGET}${libdir}/go" | 8 | GOROOT:class-nativesdk = "${STAGING_DIR_TARGET}${libdir}/go" |
7 | GOROOT = "${STAGING_LIBDIR}/go" | 9 | GOROOT = "${STAGING_LIBDIR}/go" |
diff --git a/meta/recipes-devtools/go/go-common.inc b/meta/recipes-devtools/go/go-common.inc index dfccebdb83..5bbf35b787 100644 --- a/meta/recipes-devtools/go/go-common.inc +++ b/meta/recipes-devtools/go/go-common.inc | |||
@@ -37,6 +37,8 @@ export GO386 ?= "${TARGET_GO386}" | |||
37 | export GOMIPS ?= "${TARGET_GOMIPS}" | 37 | export GOMIPS ?= "${TARGET_GOMIPS}" |
38 | export GOROOT_FINAL ?= "${libdir}/go" | 38 | export GOROOT_FINAL ?= "${libdir}/go" |
39 | 39 | ||
40 | export GODEBUG = "gocachehash=1" | ||
41 | |||
40 | do_compile:prepend() { | 42 | do_compile:prepend() { |
41 | BUILD_CC=${BUILD_CC} | 43 | BUILD_CC=${BUILD_CC} |
42 | } | 44 | } |