Skip to contentSkip to conversation

iotop: Use lld with clang on arm

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

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 iotop: Use lld with clang on arm

BFD linker is crashing when using clang, workaround it by always using lld when using clang on arm

---
 meta-oe/recipes-extended/iotop/iotop_1.20.bb | 4 ++++
 1 file changed, 4 insertions(+)
meta-oe/recipes-extended/iotop/iotop_1.20.bb +4 -0
index 17c567095b..b05c8cd35d 100644
@@ -12,6 +12,10 @@ inherit pkgconfig
 
 EXTRA_OEMAKE = "V=1 STRIP=true"
 
+# Workaround BFD linker crash with clang on arm
+# revisit when upgrading binutils and see if its fixed
+LDFLAGS:append:toolchain-clang:arm = " -fuse-ld=lld"
+
 do_install() {
     oe_runmake install DESTDIR=${D}
 }
Signature · 1 line
2.34.1