aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2020-08-12 15:40:05 -0700
committerKhem Raj <raj.khem@gmail.com>2020-08-13 22:32:08 -0700
commitc3f9e92fb2137ae24e70c3f0d957397748727c13 (patch)
tree7d222ac8f64497d071da693535ad49a7552c40ab
parent7206d7c135e650ea226b7995a40191432a623494 (diff)
downloadmeta-openembedded-contrib-c3f9e92fb2137ae24e70c3f0d957397748727c13.tar.gz
meta-openembedded-contrib-c3f9e92fb2137ae24e70c3f0d957397748727c13.tar.bz2
meta-openembedded-contrib-c3f9e92fb2137ae24e70c3f0d957397748727c13.zip
python3-matplotlib: Use lld for linking when using clang
build uses LTO and for some reason it does not work well when using clang-11 Fixes | /mnt/b/yoe/master/build/tmp/work/armv7vet2hf-neon-yoe-linux-musleabi/python3-matplotlib/3.3.0-r0/recipe-sysroot-nat ive/usr/bin/arm-yoe-linux-musleabi/arm-yoe-linux-musleabi-ld.gold: error: /mnt/b/yoe/master/build/tmp/work/armv7vet2h f-neon-yoe-linux-musleabi/python3-matplotlib/3.3.0-r0/build/temp.linux-x86_64-3.8/extern/agg24-svn/src/agg_bezier_arc .o: not an object or archive Signed-off-by: Khem Raj <raj.khem@gmail.com> Acked-by: Trevor Gamblin <trevor.gamblin@windriver.com>
-rw-r--r--meta-python/recipes-devtools/python/python3-matplotlib_3.3.0.bb3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-matplotlib_3.3.0.bb b/meta-python/recipes-devtools/python/python3-matplotlib_3.3.0.bb
index 2e88efb563..bc2054a4d7 100644
--- a/meta-python/recipes-devtools/python/python3-matplotlib_3.3.0.bb
+++ b/meta-python/recipes-devtools/python/python3-matplotlib_3.3.0.bb
@@ -23,6 +23,9 @@ SRC_URI[sha256sum] = "24e8db94948019d531ce0bcd637ac24b1c8f6744ac86d2aa0eb6dbaeb1
inherit pypi setuptools3 pkgconfig
+# LTO with clang needs lld
+LDFLAGS_append_toolchain-clang = " -fuse-ld=lld"
+
RDEPENDS_${PN} = "\
freetype \
libpng \