[meta-oe] iotop: Disable lto with clang for rv32

Message ID 20220221005334.3125600-1-raj.khem@gmail.com
State New
Headers show
Series [meta-oe] iotop: Disable lto with clang for rv32 | expand

Commit Message

Khem Raj Feb. 21, 2022, 12:53 a.m. UTC
clang/rv32 is mixing ABIs because defaults are ilp32d for OE but when LTO
is used it pulls in ilp32 internally so disable lto for now.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta-oe/recipes-extended/iotop/iotop_1.20.bb | 1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/meta-oe/recipes-extended/iotop/iotop_1.20.bb b/meta-oe/recipes-extended/iotop/iotop_1.20.bb
index a044c9b248..2900264f79 100644
--- a/meta-oe/recipes-extended/iotop/iotop_1.20.bb
+++ b/meta-oe/recipes-extended/iotop/iotop_1.20.bb
@@ -13,6 +13,7 @@  inherit pkgconfig
 EXTRA_OEMAKE = "V=1 STRIP=true"
 # Fixes llvm-bc70b5.o: can't link soft-float modules with double-float modules
 EXTRA_OEMAKE:append:toolchain-clang:riscv64 = " NO_FLTO=1"
+EXTRA_OEMAKE:append:toolchain-clang:riscv32 = " NO_FLTO=1"
 
 # Workaround BFD linker crash with clang on arm
 # revisit when upgrading binutils and see if its fixed