Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 1 | require go-cross-canadian.inc |
| 2 | require go-${PV}.inc |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 3 | |
| 4 | export GOHOSTOS_CROSS = "${HOST_GOOS}" |
| 5 | export GOHOSTARCH_CROSS = "${HOST_GOARCH}" |
| 6 | export CC_FOR_TARGET = "${HOST_PREFIX}gcc --sysroot=${STAGING_DIR_HOST}${SDKPATHNATIVE} ${SECURITY_NOPIE_CFLAGS}" |
| 7 | export CXX_FOR_TARGET = "${HOST_PREFIX}g++ --sysroot=${STAGING_DIR_HOST}${SDKPATHNATIVE} ${SECURITY_NOPIE_CFLAGS}" |
| 8 | |
| 9 | do_compile_prepend() { |
| 10 | export GOBIN="${B}/bin" |
| 11 | export TMPDIR="$GOTMPDIR" |
| 12 | } |