summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/go/go-crosssdk_1.9.bb
blob: 3ac629bd41e91ba04a590a271c95745e37503d7e (plain)
1
2
3
4
5
6
7
8
9
10
11
require go-crosssdk.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}"
export GO_INSTALL = "cmd"

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