From: Khem Raj Date: Sun, 26 Jan 2020 19:27:47 +0000 (-0800) Subject: go.bbclass: Disable PIE on riscv X-Git-Tag: uninative-2.8~394 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=aeb38e003dc5e11008e301a584e93351745ef6e7;p=openembedded-core.git go.bbclass: Disable PIE on riscv Its not _yet_ supported for riscv Signed-off-by: Khem Raj Signed-off-by: Richard Purdie --- diff --git a/meta/classes/go.bbclass b/meta/classes/go.bbclass index e40e55689d..369652dbbd 100644 --- a/meta/classes/go.bbclass +++ b/meta/classes/go.bbclass @@ -147,7 +147,7 @@ INSANE_SKIP_${PN} += "ldflags" # doesn't support -buildmode=pie, so skip the QA checking for mips and its # variants. python() { - if 'mips' in d.getVar('TARGET_ARCH'): + if 'mips' in d.getVar('TARGET_ARCH') or 'riscv' in d.getVar('TARGET_ARCH'): d.appendVar('INSANE_SKIP_%s' % d.getVar('PN'), " textrel") else: d.appendVar('GOBUILDFLAGS', ' -buildmode=pie')