summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/go/go-cross-canadian_1.9.bb
blob: 367a9670562a5ed364b062c3c7fea25853f15015 (plain)
1
2
3
4
5
6
7
8
9
10
11
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"
}