diff options
Diffstat (limited to 'www-client/chromium/chromium-122.0.6261.6.ebuild')
-rw-r--r-- | www-client/chromium/chromium-122.0.6261.6.ebuild | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/www-client/chromium/chromium-122.0.6261.6.ebuild b/www-client/chromium/chromium-122.0.6261.6.ebuild index 191e521abd6b..cd22863412fc 100644 --- a/www-client/chromium/chromium-122.0.6261.6.ebuild +++ b/www-client/chromium/chromium-122.0.6261.6.ebuild @@ -1,4 +1,4 @@ -# Copyright 2009-2023 Gentoo Authors +# Copyright 2009-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -285,7 +285,7 @@ needs_clang() { needs_lld() { # #641556: Force lld for lto and pgo builds, otherwise disable # #918897: Temporary hack w/ use arm64 - [[ ${CHROMIUM_FORCE_LLD} == yes ]] || use lto || use pgo || use arm64 + [[ ${CHROMIUM_FORCE_LLD} == yes ]] || tc-ld-is-lld || use lto || use pgo || use arm64 } llvm_check_deps() { @@ -765,9 +765,10 @@ chromium_configure() { fi fi + # https://bugs.gentoo.org/918897#c32 + append-ldflags $(test-flags-CCLD -Wl,--undefined-version) + if needs_lld ; then - # https://bugs.gentoo.org/918897#c32 - append-ldflags -Wl,--undefined-version myconf_gn+=" use_lld=true" else # This doesn't prevent lld from being used, but rather prevents gn from forcing it |