summaryrefslogtreecommitdiff
path: root/poky/meta/recipes-devtools/go/go-cross-canadian_1.9.bb
diff options
context:
space:
mode:
Diffstat (limited to 'poky/meta/recipes-devtools/go/go-cross-canadian_1.9.bb')
-rw-r--r--poky/meta/recipes-devtools/go/go-cross-canadian_1.9.bb12
1 files changed, 12 insertions, 0 deletions
diff --git a/poky/meta/recipes-devtools/go/go-cross-canadian_1.9.bb b/poky/meta/recipes-devtools/go/go-cross-canadian_1.9.bb
new file mode 100644
index 0000000000..367a967056
--- /dev/null
+++ b/poky/meta/recipes-devtools/go/go-cross-canadian_1.9.bb
@@ -0,0 +1,12 @@
+require go-cross-canadian.inc
+require go-${PV}.inc
+
+export GOHOSTOS_CROSS = "${HOST_GOOS}"
+export GOHOSTARCH_CROSS = "${HOST_GOARCH}"
+export CC_FOR_TARGET = "${HOST_PREFIX}gcc --sysroot=${STAGING_DIR_HOST}${SDKPATHNATIVE} ${SECURITY_NOPIE_CFLAGS}"
+export CXX_FOR_TARGET = "${HOST_PREFIX}g++ --sysroot=${STAGING_DIR_HOST}${SDKPATHNATIVE} ${SECURITY_NOPIE_CFLAGS}"
+
+do_compile_prepend() {
+ export GOBIN="${B}/bin"
+ export TMPDIR="$GOTMPDIR"
+}