summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-01-28 19:56:24 +0000
committerSam James <sam@gentoo.org>2024-01-28 19:56:47 +0000
commit09792f688fc71e165c9512efff4d23afdfb8e3e7 (patch)
treeee2f4582723d9f1c1844ef6fd69402ded3bd9da3
parentgames-fps/serioussam: Bump to version 1.10.6d. Update License. (diff)
downloadgentoo-09792f688fc71e165c9512efff4d23afdfb8e3e7.tar.gz
gentoo-09792f688fc71e165c9512efff4d23afdfb8e3e7.tar.bz2
gentoo-09792f688fc71e165c9512efff4d23afdfb8e3e7.zip
www-client/chromium: always pass -Wl,--undefined-version if supported
Needed for e.g. mold and also if the ebuild didn't force lld but it's being used. Bug: https://bugs.gentoo.org/918897 Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--www-client/chromium/chromium-120.0.6099.129.ebuild5
-rw-r--r--www-client/chromium/chromium-120.0.6099.224.ebuild5
-rw-r--r--www-client/chromium/chromium-121.0.6167.85.ebuild7
-rw-r--r--www-client/chromium/chromium-122.0.6261.6.ebuild7
4 files changed, 14 insertions, 10 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..91a4aac3089a 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
myconf_gn+=" use_lld=true"
else
myconf_gn+=" use_lld=false"
diff --git a/www-client/chromium/chromium-120.0.6099.224.ebuild b/www-client/chromium/chromium-120.0.6099.224.ebuild
index ec304dfd9b96..fc235299b7a4 100644
--- a/www-client/chromium/chromium-120.0.6099.224.ebuild
+++ b/www-client/chromium/chromium-120.0.6099.224.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
myconf_gn+=" use_lld=true"
else
myconf_gn+=" use_lld=false"
diff --git a/www-client/chromium/chromium-121.0.6167.85.ebuild b/www-client/chromium/chromium-121.0.6167.85.ebuild
index ce967e9c792f..b763322aa50c 100644
--- a/www-client/chromium/chromium-121.0.6167.85.ebuild
+++ b/www-client/chromium/chromium-121.0.6167.85.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
@@ -760,10 +760,11 @@ chromium_configure() {
myconf_gn+=" is_clang=false"
fi
+ # https://bugs.gentoo.org/918897#c32
+ append-ldflags $(test-flags-CCLD -Wl,--undefined-version)
+
# 641556: Force lld for lto and pgo builds, otherwise disable
if needs_lld || use lto || use pgo; 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
diff --git a/www-client/chromium/chromium-122.0.6261.6.ebuild b/www-client/chromium/chromium-122.0.6261.6.ebuild
index 191e521abd6b..6fd300f560f1 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
@@ -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