[meta-oe] iotop: Disable LTO with clang/rv64

Message ID 20220124183337.2773373-1-raj.khem@gmail.com
State New
Headers show
Series [meta-oe] iotop: Disable LTO with clang/rv64 | expand

Commit Message

Khem Raj Jan. 24, 2022, 6:33 p.m. UTC
LTO with clang does not configure correctly yet with meta-clang

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

Patch

diff --git a/meta-oe/recipes-extended/iotop/iotop_1.20.bb b/meta-oe/recipes-extended/iotop/iotop_1.20.bb
index b05c8cd35d..a044c9b248 100644
--- a/meta-oe/recipes-extended/iotop/iotop_1.20.bb
+++ b/meta-oe/recipes-extended/iotop/iotop_1.20.bb
@@ -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