mirror of
https://git.yoctoproject.org/poky
synced 2026-04-24 03:32:13 +02:00
go 1.14 for windows targets does not support -buildmode=pie, disable it and use the default buildmode instead. Support for -buildmode=pie for windows targets is added with go 1.15 (https://golang.org/doc/go1.15) which is added to poky in gatesgarth. (From OE-Core rev: a1b0631c4723d2a98eb9e80ec85a00bc46276783) Signed-off-by: Peter Morrow <pemorrow@linux.microsoft.com> Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
15 lines
553 B
BlitzBasic
15 lines
553 B
BlitzBasic
require go-${PV}.inc
|
|
require go-target.inc
|
|
|
|
export GOBUILDMODE=""
|
|
export CGO_ENABLED_riscv64 = ""
|
|
# Add pie to GOBUILDMODE to satisfy "textrel" QA checking, but
|
|
# windows/mips/riscv doesn't support -buildmode=pie, so skip the QA checking
|
|
# for windows/mips/riscv and their variants.
|
|
python() {
|
|
if 'mips' in d.getVar('TARGET_ARCH',True) or 'riscv' in d.getVar('TARGET_ARCH',True) or 'windows' in d.getVar('TARGET_GOOS', True):
|
|
d.appendVar('INSANE_SKIP_%s' % d.getVar('PN',True), " textrel")
|
|
else:
|
|
d.setVar('GOBUILDMODE', 'pie')
|
|
}
|