From 933795217f9142c246c359f92e8320516e5c66a5 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Thu, 27 May 2021 01:13:59 -0700 Subject: ghostscript: Fix build when using libc++ RUNTIME=llvm means we use libc++ instead of libstdc++ among other things Signed-off-by: Khem Raj --- recipes-extended/ghostscript/ghostscript_%.bbappend | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 recipes-extended/ghostscript/ghostscript_%.bbappend diff --git a/recipes-extended/ghostscript/ghostscript_%.bbappend b/recipes-extended/ghostscript/ghostscript_%.bbappend new file mode 100644 index 0000000..fe22e34 --- /dev/null +++ b/recipes-extended/ghostscript/ghostscript_%.bbappend @@ -0,0 +1,7 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +do_configure_prepend_toolchain-clang () { + if ${@bb.utils.contains('RUNTIME', 'llvm', 'true', 'false', d)}; then + sed -i -e "s|-stdlib=libstdc++|-stdlib=libc++|g" ${S}/configure.ac + fi +} -- cgit v1.2.3-54-g00ecf