commit:     5a9430b0b52c31219e6231be350dcd80103a2401
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 28 11:48:43 2026 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Sat Feb 28 13:31:42 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a9430b0

dev-libs/leancrypto: Force bfd linker over mold

This uses a linker script that mold cannot handle.

Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>

 dev-libs/leancrypto/leancrypto-1.6.0-r3.ebuild | 4 +++-
 dev-libs/leancrypto/leancrypto-9999.ebuild     | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/dev-libs/leancrypto/leancrypto-1.6.0-r3.ebuild 
b/dev-libs/leancrypto/leancrypto-1.6.0-r3.ebuild
index 990953116dfd..578c8f6c27f9 100644
--- a/dev-libs/leancrypto/leancrypto-1.6.0-r3.ebuild
+++ b/dev-libs/leancrypto/leancrypto-1.6.0-r3.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit dot-a meson-multilib
+inherit dot-a meson-multilib toolchain-funcs
 
 DESCRIPTION="Lean cryptographic library usable for bare-metal environments "
 HOMEPAGE="https://leancrypto.org/";
@@ -46,6 +46,8 @@ src_configure() {
 }
 
 multilib_src_configure() {
+       tc-ld-is-mold && tc-ld-force-bfd
+
        local native_file="${T}"/meson.${CHOST}.${ABI}.ini.local
        cat >> ${native_file} <<-EOF || die
        [binaries]

diff --git a/dev-libs/leancrypto/leancrypto-9999.ebuild 
b/dev-libs/leancrypto/leancrypto-9999.ebuild
index 58bd5433976e..f9c08f28062d 100644
--- a/dev-libs/leancrypto/leancrypto-9999.ebuild
+++ b/dev-libs/leancrypto/leancrypto-9999.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit dot-a meson-multilib
+inherit dot-a meson-multilib toolchain-funcs
 
 DESCRIPTION="Lean cryptographic library usable for bare-metal environments "
 HOMEPAGE="https://leancrypto.org/";
@@ -42,6 +42,8 @@ src_configure() {
 }
 
 multilib_src_configure() {
+       tc-ld-is-mold && tc-ld-force-bfd
+
        local native_file="${T}"/meson.${CHOST}.${ABI}.ini.local
        cat >> ${native_file} <<-EOF || die
        [binaries]

Reply via email to