mirror of
https://git.yoctoproject.org/poky
synced 2026-04-26 00:32:12 +02:00
(From OE-Core rev: 257d508268719bd90ed81b61a04b756ba78ec1bd) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
19 lines
473 B
BlitzBasic
19 lines
473 B
BlitzBasic
require go-${PV}.inc
|
|
require go-target.inc
|
|
|
|
inherit linuxloader
|
|
|
|
CGO_LDFLAGS:append:mips = " -no-pie"
|
|
|
|
export GO_LDSO = "${@get_linuxloader(d)}"
|
|
export CC_FOR_TARGET = "gcc"
|
|
export CXX_FOR_TARGET = "g++"
|
|
|
|
# mips/rv64 doesn't support -buildmode=pie, so skip the QA checking for mips/riscv32 and its
|
|
# variants.
|
|
python() {
|
|
if 'mips' in d.getVar('TARGET_ARCH') or 'riscv32' in d.getVar('TARGET_ARCH'):
|
|
d.appendVar('INSANE_SKIP:%s' % d.getVar('PN'), " textrel")
|
|
}
|
|
|