mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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:
@@ -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\"
|
||||
}
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user