From bfd22261ef554575dee9a857e518b7b6c603af2a Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sun, 20 Feb 2022 16:51:09 -0800 Subject: [PATCH] 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. Signed-off-by: Khem Raj --- meta-oe/recipes-extended/iotop/iotop_1.20.bb | 1 + 1 file changed, 1 insertion(+) 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