dev-qt/qtwebengine: fix build with sys-devel/clang[default-libcxx]

Signed-off-by: James Beddek <telans@posteo.de>
Closes: https://github.com/gentoo/gentoo/pull/21337
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
James Beddek
2021-06-20 10:32:36 +12:00
committed by Sam James
parent b4be638d4e
commit 0ac16a4b3a
2 changed files with 15 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
--- a/src/buildtools/gn.pro
+++ b/src/buildtools/gn.pro
@@ -25,6 +25,7 @@
msvc:!clang_cl: gn_gen_args += --use-lto
gn_configure = $$system_quote($$gn_bootstrap) $$gn_gen_args
+ gn_configure += --no-static-libstdc++
macos {
gn_configure += --isysroot \"$$QMAKE_MAC_SDK_PATH\"
}

View File

@@ -176,6 +176,11 @@ src_prepare() {
eapply "${FILESDIR}/qtwebengine-5.15.2_p20210824-harfbuzz-3.0.0.patch"
fi
# src/3rdparty/gn fails with libc++ due to passing of `-static-libstdc++`
if tc-is-clang && has_version 'sys-devel/clang[default-libcxx]'; then
eapply "${FILESDIR}/${PN}-5.15.2_p20210521-clang-libc++.patch"
fi
qt_use_disable_config alsa webengine-alsa src/buildtools/config/linux.pri
qt_use_disable_config pulseaudio webengine-pulseaudio src/buildtools/config/linux.pri