Skip to contentSkip to conversation

iotop: Disable LTO with clang/rv64

PATCH New Khem Raj 1 participant 1 message Jan 24, 2022

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 iotop: Disable LTO with clang/rv64

LTO with clang does not configure correctly yet with meta-clang

---
 meta-oe/recipes-extended/iotop/iotop_1.20.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-oe/recipes-extended/iotop/iotop_1.20.bb +2 -0
index b05c8cd35d..a044c9b248 100644
@@ -11,6 +11,8 @@ UPSTREAM_CHECK_URI = "https://github.com/Tomas-M/iotop/releases"
 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"
 
 # Workaround BFD linker crash with clang on arm
 # revisit when upgrading binutils and see if its fixed
Signature · 1 line
2.34.1