mirror of
https://git.yoctoproject.org/poky
synced 2026-05-01 06:32:11 +02:00
The statically-linked Go code in the toolchain is not compatible with PIE, so disable its use in the C compiler during the toolchain build. (From OE-Core rev: cc7b179917c715b29822200fe91ecd755a5750e6) Signed-off-by: Matt Madison <matt@madison.systems> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 lines
441 B
BlitzBasic
13 lines
441 B
BlitzBasic
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"
|
|
}
|