From 59d1f02bcce879c6e565ba605afc4eddd1dce871 Mon Sep 17 00:00:00 2001 From: James Le Cuirot Date: Wed, 13 Sep 2023 09:01:00 +0100 Subject: [PATCH] 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 --- 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 1182ef8ae5ace..6ad50eea426b8 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 6863e2427bf68..4e85a4b43e39b 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