commit:     18e9cb36fe71ceb4b3ec1a50daf9e406656d478a
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 24 11:02:53 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Jan 24 11:02:53 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=18e9cb36

dev-libs/libcdio: workaround for LLD 17

This is fixed upstream but add the workaround for now.

Closes: https://bugs.gentoo.org/915826
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-libs/libcdio/libcdio-2.1.0-r1.ebuild | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/dev-libs/libcdio/libcdio-2.1.0-r1.ebuild 
b/dev-libs/libcdio/libcdio-2.1.0-r1.ebuild
index 122dfa96d536..cdbeceb6079b 100644
--- a/dev-libs/libcdio/libcdio-2.1.0-r1.ebuild
+++ b/dev-libs/libcdio/libcdio-2.1.0-r1.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
-inherit autotools libtool multilib-minimal
+inherit autotools flag-o-matic libtool multilib-minimal
 
 DESCRIPTION="A library to encapsulate CD-ROM reading and control"
 HOMEPAGE="https://www.gnu.org/software/libcdio/";
@@ -45,11 +45,13 @@ src_prepare() {
        default
 
        eautoreconf
-
-       elibtoolize # to prevent -L/usr/lib ending up in the linker line wrt 
499510
+       elibtoolize # to prevent -L/usr/lib ending up in the linker line wrt 
#499510
 }
 
 multilib_src_configure() {
+       # Workaround for LLD 17, drop after 2.1.0 (bug #915826)
+       append-ldflags $(test-flags-CCLD -Wl,--undefined-version)
+
        local util_switch
        if ! multilib_is_native_abi || use minimal ; then
                util_switch="--without"

Reply via email to