commit: 605800519081b08274479cd00dd16a7622e710e5 Author: Petr Šabata <contyk <AT> redhat <DOT> com> AuthorDate: Mon May 10 06:44:17 2021 +0000 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> CommitDate: Mon May 10 07:22:48 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=60580051
sys-libs/glibc: Filter "-Wl,--relax" from LDFLAGS The build fails due to the -r & --relax combination passed to the linker, so let's filter this out. Closes: https://bugs.gentoo.org/788901 Signed-off-by: Petr Šabata <contyk <AT> redhat.com> Closes: https://github.com/gentoo/gentoo/pull/20748 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> sys-libs/glibc/glibc-2.33.ebuild | 4 ++++ sys-libs/glibc/glibc-9999.ebuild | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/sys-libs/glibc/glibc-2.33.ebuild b/sys-libs/glibc/glibc-2.33.ebuild index 332448bce7b..8cda845c34b 100644 --- a/sys-libs/glibc/glibc-2.33.ebuild +++ b/sys-libs/glibc/glibc-2.33.ebuild @@ -393,6 +393,10 @@ setup_flags() { # glibc aborts if rpath is set by LDFLAGS filter-ldflags '-Wl,-rpath=*' + # ld can't use -r & --relax at the same time, bug #788901 + # https://sourceware.org/PR27837 + filter-ldflags '-Wl,--relax' + # #492892 filter-flags -frecord-gcc-switches diff --git a/sys-libs/glibc/glibc-9999.ebuild b/sys-libs/glibc/glibc-9999.ebuild index 7887443a98c..95493a554e2 100644 --- a/sys-libs/glibc/glibc-9999.ebuild +++ b/sys-libs/glibc/glibc-9999.ebuild @@ -394,6 +394,10 @@ setup_flags() { # glibc aborts if rpath is set by LDFLAGS filter-ldflags '-Wl,-rpath=*' + # ld can't use -r & --relax at the same time, bug #788901 + # https://sourceware.org/PR27837 + filter-ldflags '-Wl,--relax' + # #492892 filter-flags -frecord-gcc-switches
