From aa475b61719c0c2bb4ce045f6a4f2f63b1f81702 Mon Sep 17 00:00:00 2001 From: Sam James Date: Sat, 29 Jun 2024 17:34:14 +0100 Subject: [PATCH] sys-libs/binutils-libs: pass -Wl,--undefined-version for now Just pass -Wl,--undefined-version as this is fixed upstream in master (and will be in 2.43) but it ended up being reworked quite a bit. Closes: https://github.com/gentoo/gentoo/pull/35532 Closes: https://bugs.gentoo.org/914640 Signed-off-by: Sam James --- sys-libs/binutils-libs/binutils-libs-2.42-r1.ebuild | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys-libs/binutils-libs/binutils-libs-2.42-r1.ebuild b/sys-libs/binutils-libs/binutils-libs-2.42-r1.ebuild index 7f924f8a301ce..fcdeb9f8509bd 100644 --- a/sys-libs/binutils-libs/binutils-libs-2.42-r1.ebuild +++ b/sys-libs/binutils-libs/binutils-libs-2.42-r1.ebuild @@ -77,6 +77,10 @@ pkgversion() { multilib_src_configure() { filter-lto + # Workaround for lld-17 (bug #914640) + # Should be able to drop this w/ >=binutils-2.43 + append-ldflags $(test-flags-CCLD -Wl,--undefined-version) + local myconf=( # portage's econf() does not detect presence of --d-d-t # because it greps only top-level ./configure. But not