Skip to contentSkip to conversation

iotop: Disable lto with clang for rv32

PATCH New Khem Raj 1 participant 1 message Feb 21, 2022

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 iotop: Disable lto with clang for rv32

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.

---
 meta-oe/recipes-extended/iotop/iotop_1.20.bb | 1 +
 1 file changed, 1 insertion(+)
meta-oe/recipes-extended/iotop/iotop_1.20.bb +1 -0
index a044c9b248..2900264f79 100644
@@ -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
Signature · 1 line
2.35.1