diff options
Diffstat (limited to 'meta/recipes-devtools/go/go-cross-canadian.inc')
-rw-r--r-- | meta/recipes-devtools/go/go-cross-canadian.inc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/meta/recipes-devtools/go/go-cross-canadian.inc b/meta/recipes-devtools/go/go-cross-canadian.inc index 945d0f9d10..d49250a8e2 100644 --- a/meta/recipes-devtools/go/go-cross-canadian.inc +++ b/meta/recipes-devtools/go/go-cross-canadian.inc | |||
@@ -13,11 +13,7 @@ DEBUG_PREFIX_MAP = "-fdebug-prefix-map=${WORKDIR}=/usr/src/debug/${PN}/${EXTENDP | |||
13 | -fdebug-prefix-map=${STAGING_DIR_NATIVE}= \ | 13 | -fdebug-prefix-map=${STAGING_DIR_NATIVE}= \ |
14 | " | 14 | " |
15 | 15 | ||
16 | export GOHOSTOS = "${BUILD_GOOS}" | ||
17 | export GOHOSTARCH = "${BUILD_GOARCH}" | ||
18 | export GOROOT_BOOTSTRAP = "${STAGING_LIBDIR_NATIVE}/go" | ||
19 | export GOTOOLDIR_BOOTSTRAP = "${STAGING_LIBDIR_NATIVE}/${HOST_SYS}/go/pkg/tool/${BUILD_GOTUPLE}" | 16 | export GOTOOLDIR_BOOTSTRAP = "${STAGING_LIBDIR_NATIVE}/${HOST_SYS}/go/pkg/tool/${BUILD_GOTUPLE}" |
20 | export GOROOT_FINAL = "${libdir}/go" | ||
21 | export CGO_CFLAGS = "${CFLAGS}" | 17 | export CGO_CFLAGS = "${CFLAGS}" |
22 | export CGO_LDFLAGS = "${LDFLAGS}" | 18 | export CGO_LDFLAGS = "${LDFLAGS}" |
23 | export GO_LDFLAGS = '-linkmode external -extld ${HOST_PREFIX}gcc -extldflags "--sysroot=${STAGING_DIR_HOST} ${SECURITY_NOPIE_CFLAGS} ${HOST_CC_ARCH} ${LDFLAGS}"' | 19 | export GO_LDFLAGS = '-linkmode external -extld ${HOST_PREFIX}gcc -extldflags "--sysroot=${STAGING_DIR_HOST} ${SECURITY_NOPIE_CFLAGS} ${HOST_CC_ARCH} ${LDFLAGS}"' |
@@ -25,8 +21,8 @@ export GO_LDFLAGS = '-linkmode external -extld ${HOST_PREFIX}gcc -extldflags "-- | |||
25 | do_configure[noexec] = "1" | 21 | do_configure[noexec] = "1" |
26 | 22 | ||
27 | do_compile() { | 23 | do_compile() { |
28 | export CC_FOR_${HOST_GOOS}_${HOST_GOARCH}="${HOST_PREFIX}gcc --sysroot=${STAGING_DIR_HOST}${SDKPATHNATIVE} ${SECURITY_NOPIE_CFLAGS}" | 24 | export CC_FOR_${HOST_GOTUPLE}="${HOST_PREFIX}gcc --sysroot=${STAGING_DIR_HOST}${SDKPATHNATIVE} ${SECURITY_NOPIE_CFLAGS}" |
29 | export CXX_FOR_${HOST_GOOS}_${HOST_GOARCH}="${HOST_PREFIX}gxx --sysroot=${STAGING_DIR_HOST}${SDKPATHNATIVE} ${SECURITY_NOPIE_CFLAGS}" | 25 | export CXX_FOR_${HOST_GOTUPLE}="${HOST_PREFIX}gxx --sysroot=${STAGING_DIR_HOST}${SDKPATHNATIVE} ${SECURITY_NOPIE_CFLAGS}" |
30 | cd src | 26 | cd src |
31 | ./make.bash --host-only --no-banner | 27 | ./make.bash --host-only --no-banner |
32 | cd ${B} | 28 | cd ${B} |