commit:     199a157b43188adb4e2da3f0d285a7a6a351ea44
Author:     Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 19 11:40:46 2023 +0000
Commit:     Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Sat Aug 19 16:24:07 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=199a157b

sys-libs/libblockdev: work around problems with sys-devel/lld

Closes: https://bugs.gentoo.org/910487
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>

 sys-libs/libblockdev/libblockdev-3.0.2-r1.ebuild | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/sys-libs/libblockdev/libblockdev-3.0.2-r1.ebuild 
b/sys-libs/libblockdev/libblockdev-3.0.2-r1.ebuild
index 3c1005c34b8a..c9c348b7e758 100644
--- a/sys-libs/libblockdev/libblockdev-3.0.2-r1.ebuild
+++ b/sys-libs/libblockdev/libblockdev-3.0.2-r1.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 
 PYTHON_COMPAT=( python3_{10..11} )
-inherit autotools python-single-r1 xdg-utils
+inherit autotools python-single-r1 toolchain-funcs xdg-utils
 
 DESCRIPTION="A library for manipulating block devices"
 HOMEPAGE="https://github.com/storaged-project/libblockdev";
@@ -88,6 +88,11 @@ src_prepare() {
 }
 
 src_configure() {
+       # Bug #910487
+       if tc-ld-is-lld; then
+               tc-ld-force-bfd
+       fi
+
        local myeconfargs=(
                --with-btrfs
                --with-fs

Reply via email to