diff options
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.bb | 12 |
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 000000000..367a96705 --- /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" +} |