commit:     e985db65bb78afa74f20b77e10613918fb477715
Author:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 19 22:04:18 2025 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Tue Aug 19 23:26:17 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e985db65

dev-libs/ffcall: use dot-a.eclass

... to avoid installing broken static libraries w/ LTO.

Closes: https://bugs.gentoo.org/957932
Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>

 dev-libs/ffcall/ffcall-2.5.ebuild | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/dev-libs/ffcall/ffcall-2.5.ebuild 
b/dev-libs/ffcall/ffcall-2.5.ebuild
index 039640e90b90..530fc2fd2d47 100644
--- a/dev-libs/ffcall/ffcall-2.5.ebuild
+++ b/dev-libs/ffcall/ffcall-2.5.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit autotools flag-o-matic libtool
+inherit autotools dot-a flag-o-matic libtool
 
 MY_PV="libffcall-${PV}"
 
@@ -38,8 +38,8 @@ src_prepare() {
        done
 
        default
-       elibtoolize
        eautoreconf
+       elibtoolize
 
        if use kernel_linux ; then
                QA_CONFIG_IMPL_DECL_SKIP=( PROT_MPROTECT )
@@ -49,6 +49,7 @@ src_prepare() {
 
 src_configure() {
        append-flags -fPIC
+       lto-guarantee-fat
 
        # Doc goes in datadir
        econf \
@@ -65,6 +66,7 @@ src_install() {
        dodir /usr/share/man
 
        default
+       strip-lto-bytecode
 
        find "${ED}" -name '*.la' -delete || die
 }

Reply via email to