summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--recipes-devtools/go-cross/go-cross.inc10
1 files changed, 1 insertions, 9 deletions
diff --git a/recipes-devtools/go-cross/go-cross.inc b/recipes-devtools/go-cross/go-cross.inc
index 6363a789..613e9c7c 100644
--- a/recipes-devtools/go-cross/go-cross.inc
+++ b/recipes-devtools/go-cross/go-cross.inc
@@ -2,10 +2,6 @@ inherit cross
2 2
3DEPENDS += "go-native" 3DEPENDS += "go-native"
4 4
5# Prevent runstrip from running because you get errors when the host arch != target arch
6#INHIBIT_PACKAGE_STRIP = "1"
7STRIP = "echo"
8
9export GOHOSTOS = "${BUILD_GOOS}" 5export GOHOSTOS = "${BUILD_GOOS}"
10export GOHOSTARCH = "${BUILD_GOARCH}" 6export GOHOSTARCH = "${BUILD_GOARCH}"
11export GOOS = "${TARGET_GOOS}" 7export GOOS = "${TARGET_GOOS}"
@@ -30,8 +26,6 @@ do_compile() {
30 26
31 cd src 27 cd src
32 ./make.bash --host-only 28 ./make.bash --host-only
33 # Ensure cgo.a is built with the target toolchain
34 GO_FLAGS="-a" ./make.bash --target-only
35} 29}
36 30
37do_install() { 31do_install() {
@@ -44,9 +38,7 @@ do_install() {
44 install -d ${D}${bindir} 38 install -d ${D}${bindir}
45 for f in ${B}/bin/* 39 for f in ${B}/bin/*
46 do 40 do
47 if [ ! -d "$f" ] ; then 41 install -m755 $f ${D}${bindir}
48 install -m755 $f ${D}${bindir}
49 fi
50 done 42 done
51} 43}
52 44