summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2021-05-27 01:13:59 -0700
committerKhem Raj <raj.khem@gmail.com>2023-09-08 09:08:54 -0700
commit4226964b64862de3cf75b590c4d488d4482624c9 (patch)
tree8855e9a5a53a38419dcd1757876a88a0384fd6da
parent8acc0b9c2a3942077d43f0baefc2841cc993fae1 (diff)
downloadmeta-clang-4226964b64862de3cf75b590c4d488d4482624c9.tar.gz
ghostscript: Fix build when using libc++
RUNTIME=llvm means we use libc++ instead of libstdc++ among other things Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 933795217f9142c246c359f92e8320516e5c66a5)
-rw-r--r--recipes-extended/ghostscript/ghostscript_%.bbappend7
1 files changed, 7 insertions, 0 deletions
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 @@
1FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
2
3do_configure_prepend_toolchain-clang () {
4 if ${@bb.utils.contains('RUNTIME', 'llvm', 'true', 'false', d)}; then
5 sed -i -e "s|-stdlib=libstdc++|-stdlib=libc++|g" ${S}/configure.ac
6 fi
7}