summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-10-18 07:43:45 +0100
committerSam James <sam@gentoo.org>2023-10-18 07:44:13 +0100
commita18de479c55e6a3f1a2400a1ddebef3eaad1ab30 (patch)
tree2690e22a3babd74a9449e35874a08bd652f89da6
parentx11-terms/kitty: Stabilize 0.30.1 amd64, #915892 (diff)
downloadgentoo-a18de479c55e6a3f1a2400a1ddebef3eaad1ab30.tar.gz
gentoo-a18de479c55e6a3f1a2400a1ddebef3eaad1ab30.tar.bz2
gentoo-a18de479c55e6a3f1a2400a1ddebef3eaad1ab30.zip
qt5-build.eclass: guard -Wl,--undefined-version with tc-ld-is-lld
Older binutils doesn't support this flag, so just guard it to make life easier for people. Bug: https://bugs.gentoo.org/915203 Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--eclass/qt5-build.eclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/qt5-build.eclass b/eclass/qt5-build.eclass
index e9cb2f50fd3a..db333767fae6 100644
--- a/eclass/qt5-build.eclass
+++ b/eclass/qt5-build.eclass
@@ -233,7 +233,7 @@ qt5-build_src_configure() {
# Workaround for bug #915203
# Upstream: https://bugreports.qt.io/browse/QTBUG-111514
- if [[ ${PN} != qtcore ]]; then
+ if [[ ${PN} != qtcore ]] && tc-ld-is-lld ; then
append-ldflags -Wl,--undefined-version
fi