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.inc13
1 files changed, 2 insertions, 11 deletions
diff --git a/meta/recipes-devtools/go/go-cross.inc b/meta/recipes-devtools/go/go-cross.inc
index 3d344a74d3..3d5803bf07 100644
--- a/meta/recipes-devtools/go/go-cross.inc
+++ b/meta/recipes-devtools/go/go-cross.inc
@@ -5,23 +5,14 @@ DEPENDS = "go-native"
5 5
6PN = "go-cross-${TUNE_PKGARCH}" 6PN = "go-cross-${TUNE_PKGARCH}"
7 7
8export GOHOSTOS = "${BUILD_GOOS}"
9export GOHOSTARCH = "${BUILD_GOARCH}"
10export GOOS = "${TARGET_GOOS}"
11export GOARCH = "${TARGET_GOARCH}"
12export GOARM = "${TARGET_GOARM}"
13export GO386 = "${TARGET_GO386}"
14export GOMIPS = "${TARGET_GOMIPS}"
15export GOROOT_BOOTSTRAP = "${STAGING_LIBDIR_NATIVE}/go"
16export GOROOT_FINAL = "${libdir}/go"
17export GOCACHE = "${B}/.cache" 8export GOCACHE = "${B}/.cache"
18CC = "${@d.getVar('BUILD_CC').strip()}" 9CC = "${@d.getVar('BUILD_CC').strip()}"
19 10
20do_configure[noexec] = "1" 11do_configure[noexec] = "1"
21 12
22do_compile() { 13do_compile() {
23 export CC_FOR_${GOOS}_${GOARCH}="${TARGET_PREFIX}gcc ${TARGET_CC_ARCH} --sysroot=${STAGING_DIR_TARGET}" 14 export CC_FOR_${TARGET_GOTUPLE}="${TARGET_PREFIX}gcc ${TARGET_CC_ARCH} --sysroot=${STAGING_DIR_TARGET}"
24 export CXX_FOR_${GOOS}_${GOARCh}="${TARGET_PREFIX}g++ ${TARGET_CC_ARCH} --sysroot=${STAGING_DIR_TARGET}" 15 export CXX_FOR_${TARGET_GOTUPLE}="${TARGET_PREFIX}g++ ${TARGET_CC_ARCH} --sysroot=${STAGING_DIR_TARGET}"
25 cd src 16 cd src
26 ./make.bash --host-only --no-banner 17 ./make.bash --host-only --no-banner
27 cd ${B} 18 cd ${B}