mirror of
https://git.yoctoproject.org/poky
synced 2026-04-24 03:32:13 +02:00
cgo is still not available in go for riscv64, we will re-evaluate it once we upgrade to 1.15 Fixes | /usr/src/debug/go-runtime/1.14.4-r0/go/src/runtime/cgo/gcc_util.c:23: undefined reference to `_cgo_sys_thread_start' [YOCTO #13966] (From OE-Core rev: f512b3308ed6ee878c77f72b9235ada83d107dba) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
15 lines
489 B
BlitzBasic
15 lines
489 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 mips/riscv
|
|
# doesn't support -buildmode=pie, so skip the QA checking for mips/riscv and its
|
|
# variants.
|
|
python() {
|
|
if 'mips' in d.getVar('TARGET_ARCH',True) or 'riscv' in d.getVar('TARGET_ARCH',True):
|
|
d.appendVar('INSANE_SKIP_%s' % d.getVar('PN',True), " textrel")
|
|
else:
|
|
d.setVar('GOBUILDMODE', 'pie')
|
|
}
|