commit:     4d9e588baefcba2eb56ba54f3c83142749852bea
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Fri Jul 18 06:31:21 2025 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Fri Jul 18 06:31:52 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d9e588b

dev-ml/zarith: fix lto

Closes: https://bugs.gentoo.org/957900
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 dev-ml/zarith/zarith-1.14.ebuild | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/dev-ml/zarith/zarith-1.14.ebuild b/dev-ml/zarith/zarith-1.14.ebuild
index 5b8064a5c073..d653dac58621 100644
--- a/dev-ml/zarith/zarith-1.14.ebuild
+++ b/dev-ml/zarith/zarith-1.14.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit findlib toolchain-funcs
+inherit findlib toolchain-funcs dot-a
 
 DESCRIPTION="Arithmetic and logic operations over arbitrary-precision integers"
 HOMEPAGE="https://github.com/ocaml/Zarith";
@@ -26,6 +26,7 @@ DEPEND="${RDEPEND} dev-lang/perl"
 DOCS=( README.md Changes )
 
 src_configure() {
+       lto-guarantee-fat
        tc-export CC AR
        ./configure \
                -ocamllibdir /usr/$(get_libdir)/ocaml -gmp || die
@@ -56,4 +57,5 @@ src_install() {
 
        use doc && HTML_DOCS=( html/* )
        einstalldocs
+       strip-lto-bytecode
 }

Reply via email to