commit: 59d1f02bcce879c6e565ba605afc4eddd1dce871
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Wed Sep 13 08:01:00 2023 +0000
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Wed Sep 13 15:03:14 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=59d1f02b
sys-libs/glibc: Filter -Wl,--dynamic-linker=* from LDFLAGS
This flag is added for cross-prefix by cross-boss, but causes ldconfig to
segfault. It's not needed here anyway because glibc already handles this by
itself.
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
sys-libs/glibc/glibc-2.38-r1.ebuild | 4 ++++
sys-libs/glibc/glibc-9999.ebuild | 4 ++++
2 files changed, 8 insertions(+)
diff --git a/sys-libs/glibc/glibc-2.38-r1.ebuild
b/sys-libs/glibc/glibc-2.38-r1.ebuild
index 1182ef8ae5ac..6ad50eea426b 100644
--- a/sys-libs/glibc/glibc-2.38-r1.ebuild
+++ b/sys-libs/glibc/glibc-2.38-r1.ebuild
@@ -447,6 +447,10 @@ setup_flags() {
# https://sourceware.org/PR27837
filter-ldflags '-Wl,--relax'
+ # Flag added for cross-prefix, but causes ldconfig to segfault. Not
needed
+ # anyway because glibc already handles this by itself.
+ filter-ldflags '-Wl,--dynamic-linker=*'
+
# some weird software relies on sysv hashes in glibc, bug 863863, bug
864100
# we have to do that here already so mips can filter it out again :P
if use hash-sysv-compat ; then
diff --git a/sys-libs/glibc/glibc-9999.ebuild b/sys-libs/glibc/glibc-9999.ebuild
index 6863e2427bf6..4e85a4b43e39 100644
--- a/sys-libs/glibc/glibc-9999.ebuild
+++ b/sys-libs/glibc/glibc-9999.ebuild
@@ -447,6 +447,10 @@ setup_flags() {
# https://sourceware.org/PR27837
filter-ldflags '-Wl,--relax'
+ # Flag added for cross-prefix, but causes ldconfig to segfault. Not
needed
+ # anyway because glibc already handles this by itself.
+ filter-ldflags '-Wl,--dynamic-linker=*'
+
# some weird software relies on sysv hashes in glibc, bug 863863, bug
864100
# we have to do that here already so mips can filter it out again :P
if use hash-sysv-compat ; then