From 99490a0ee2294b474083d17cf3aa901f4d746573 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 7 Sep 2022 14:40:29 -0700 Subject: python3-matplotlib: Use llvm strip when using clang on riscv Signed-off-by: Khem Raj --- conf/nonclangable.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/conf/nonclangable.conf b/conf/nonclangable.conf index d673ed6..4fe36c8 100644 --- a/conf/nonclangable.conf +++ b/conf/nonclangable.conf @@ -438,6 +438,11 @@ OBJCOPY:pn-minio:toolchain-clang = "${HOST_PREFIX}objcopy" # see https://github.com/llvm/llvm-project/issues/54213 OBJDUMP:pn-libbsd:mips:toolchain-clang = "${HOST_PREFIX}objdump" +# With clang/lld it builds objects which gnu strip complains about +# iscv64-yoe-linux-strip: /mnt/b/yoe/master/build/tmp/work/riscv64-yoe-linux/python3-matplotlib/3.5.3-r0/package/usr/lib/python3.10/site-packages/matplotlib/stTcyupd: not enough room for program headers, try linking with -N +STRIP:pn-python3-matplotlib:toolchain-clang:riscv64 = "${HOST_PREFIX}llvm-strip" +STRIP:pn-python3-matplotlib:toolchain-clang:riscv32 = "${HOST_PREFIX}llvm-strip" + # Need OBJDUMP during do_package_qa which is set to llvm-objdump with meta-clang # it might work with GNU objdump since it falls back to one from build host DEPENDS:pn-linux-firmware:append:toolchain-clang = " clang-native" -- cgit v1.2.3-54-g00ecf