commit: a18de479c55e6a3f1a2400a1ddebef3eaad1ab30 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Wed Oct 18 06:43:45 2023 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Wed Oct 18 06:44:13 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a18de479
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 <AT> gentoo.org> 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 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