From a18de479c55e6a3f1a2400a1ddebef3eaad1ab30 Mon Sep 17 00:00:00 2001 From: Sam James Date: Wed, 18 Oct 2023 07:43:45 +0100 Subject: [PATCH] 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 --- eclass/qt5-build.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eclass/qt5-build.eclass b/eclass/qt5-build.eclass index e9cb2f50fd3a1..db333767fae69 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