diff options
-rw-r--r-- | meta/classes/go.bbclass | 1 | ||||
-rw-r--r-- | meta/recipes-devtools/go/go-cross.inc | 1 | ||||
-rw-r--r-- | meta/recipes-devtools/go/go-runtime.inc | 1 | ||||
-rw-r--r-- | meta/recipes-devtools/go/go-target.inc | 1 |
4 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/go.bbclass b/meta/classes/go.bbclass index b6d9372c56..e05a5c641c 100644 --- a/meta/classes/go.bbclass +++ b/meta/classes/go.bbclass | |||
@@ -7,6 +7,7 @@ GOROOT_class-nativesdk = "${STAGING_DIR_TARGET}${libdir}/go" | |||
7 | GOROOT = "${STAGING_LIBDIR}/go" | 7 | GOROOT = "${STAGING_LIBDIR}/go" |
8 | export GOROOT | 8 | export GOROOT |
9 | export GOROOT_FINAL = "${libdir}/go" | 9 | export GOROOT_FINAL = "${libdir}/go" |
10 | export GOCACHE = "${B}/.cache" | ||
10 | 11 | ||
11 | export GOARCH = "${TARGET_GOARCH}" | 12 | export GOARCH = "${TARGET_GOARCH}" |
12 | export GOOS = "${TARGET_GOOS}" | 13 | export GOOS = "${TARGET_GOOS}" |
diff --git a/meta/recipes-devtools/go/go-cross.inc b/meta/recipes-devtools/go/go-cross.inc index 29ce7f6e84..3d344a74d3 100644 --- a/meta/recipes-devtools/go/go-cross.inc +++ b/meta/recipes-devtools/go/go-cross.inc | |||
@@ -14,6 +14,7 @@ export GO386 = "${TARGET_GO386}" | |||
14 | export GOMIPS = "${TARGET_GOMIPS}" | 14 | export GOMIPS = "${TARGET_GOMIPS}" |
15 | export GOROOT_BOOTSTRAP = "${STAGING_LIBDIR_NATIVE}/go" | 15 | export GOROOT_BOOTSTRAP = "${STAGING_LIBDIR_NATIVE}/go" |
16 | export GOROOT_FINAL = "${libdir}/go" | 16 | export GOROOT_FINAL = "${libdir}/go" |
17 | export GOCACHE = "${B}/.cache" | ||
17 | CC = "${@d.getVar('BUILD_CC').strip()}" | 18 | CC = "${@d.getVar('BUILD_CC').strip()}" |
18 | 19 | ||
19 | do_configure[noexec] = "1" | 20 | do_configure[noexec] = "1" |
diff --git a/meta/recipes-devtools/go/go-runtime.inc b/meta/recipes-devtools/go/go-runtime.inc index c219aa3789..e282195619 100644 --- a/meta/recipes-devtools/go/go-runtime.inc +++ b/meta/recipes-devtools/go/go-runtime.inc | |||
@@ -15,6 +15,7 @@ export CGO_CFLAGS = "${CFLAGS}" | |||
15 | export CGO_CPPFLAGS = "${CPPFLAGS}" | 15 | export CGO_CPPFLAGS = "${CPPFLAGS}" |
16 | export CGO_CXXFLAGS = "${CXXFLAGS}" | 16 | export CGO_CXXFLAGS = "${CXXFLAGS}" |
17 | export CGO_LDFLAGS = "${LDFLAGS}" | 17 | export CGO_LDFLAGS = "${LDFLAGS}" |
18 | export GOCACHE = "${B}/.cache" | ||
18 | 19 | ||
19 | GO_EXTLDFLAGS ?= "${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS} ${LDFLAGS}" | 20 | GO_EXTLDFLAGS ?= "${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS} ${LDFLAGS}" |
20 | GO_SHLIB_LDFLAGS ?= '-ldflags="--linkmode=external -extldflags '${GO_EXTLDFLAGS}'"' | 21 | GO_SHLIB_LDFLAGS ?= '-ldflags="--linkmode=external -extldflags '${GO_EXTLDFLAGS}'"' |
diff --git a/meta/recipes-devtools/go/go-target.inc b/meta/recipes-devtools/go/go-target.inc index 379f87b498..91efd3e977 100644 --- a/meta/recipes-devtools/go/go-target.inc +++ b/meta/recipes-devtools/go/go-target.inc | |||
@@ -10,6 +10,7 @@ export GO386 = "${TARGET_GO386}" | |||
10 | export GOMIPS = "${TARGET_GOMIPS}" | 10 | export GOMIPS = "${TARGET_GOMIPS}" |
11 | export GOROOT_BOOTSTRAP = "${STAGING_LIBDIR_NATIVE}/go" | 11 | export GOROOT_BOOTSTRAP = "${STAGING_LIBDIR_NATIVE}/go" |
12 | export GOROOT_FINAL = "${libdir}/go" | 12 | export GOROOT_FINAL = "${libdir}/go" |
13 | export GOCACHE = "${B}/.cache" | ||
13 | GO_LDFLAGS = "" | 14 | GO_LDFLAGS = "" |
14 | GO_LDFLAGS_class-nativesdk = "-linkmode external" | 15 | GO_LDFLAGS_class-nativesdk = "-linkmode external" |
15 | export GO_LDFLAGS | 16 | export GO_LDFLAGS |