aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/go/go-cross_1.9.bb
blob: 4739c7d5c45a36b846c616aa629d74fd9517d35d (plain)
1
2
3
4
5
6
7
8
9
10
require go-cross.inc
require go-${PV}.inc

export CC_FOR_TARGET = "${TARGET_PREFIX}gcc ${TARGET_CC_ARCH} --sysroot=${STAGING_DIR_TARGET}"
export CXX_FOR_TARGET = "${TARGET_PREFIX}g++ ${TARGET_CC_ARCH} --sysroot=${STAGING_DIR_TARGET}"

do_compile_prepend() {
	export GOBIN="${B}/bin"
	export TMPDIR="$GOTMPDIR"
}