summaryrefslogtreecommitdiff
path: root/www-client/chromium/chromium-120.0.6099.129.ebuild
diff options
context:
space:
mode:
Diffstat (limited to 'www-client/chromium/chromium-120.0.6099.129.ebuild')
-rw-r--r--www-client/chromium/chromium-120.0.6099.129.ebuild7
1 files changed, 4 insertions, 3 deletions
diff --git a/www-client/chromium/chromium-120.0.6099.129.ebuild b/www-client/chromium/chromium-120.0.6099.129.ebuild
index 671a9a910671..e54129b80752 100644
--- a/www-client/chromium/chromium-120.0.6099.129.ebuild
+++ b/www-client/chromium/chromium-120.0.6099.129.ebuild
@@ -719,10 +719,11 @@ chromium_configure() {
myconf_gn+=" is_clang=false"
fi
+ # https://bugs.gentoo.org/918897#c32
+ append-ldflags $(test-flags-CCLD -Wl,--undefined-version)
+
# Force lld for lto and pgo builds, otherwise disable, bug 641556
- if needs_lld || use lto || use pgo; then
- # https://bugs.gentoo.org/918897#c32
- append-ldflags -Wl,--undefined-version
+ if needs_lld || tc-ld-is-lld || use lto || use pgo; then
myconf_gn+=" use_lld=true"
else
myconf_gn+=" use_lld=false"