commit:     9c0045b63cbe34aa41ddb4779554ede3fef5ce4f
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Tue Jul  8 18:47:27 2025 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Tue Jul  8 18:47:51 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c0045b6

dev-ml/ocurl: fix lto

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

 dev-ml/ocurl/ocurl-0.9.2-r2.ebuild | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/dev-ml/ocurl/ocurl-0.9.2-r2.ebuild 
b/dev-ml/ocurl/ocurl-0.9.2-r2.ebuild
index 562fb5b13810..9e7596d46c56 100644
--- a/dev-ml/ocurl/ocurl-0.9.2-r2.ebuild
+++ b/dev-ml/ocurl/ocurl-0.9.2-r2.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-inherit findlib
+inherit dot-a findlib
 
 DESCRIPTION="OCaml interface to the libcurl library"
 HOMEPAGE="https://forge.ocamlcore.org/projects/ocurl/ 
https://github.com/ygrek/ocurl";
@@ -20,6 +20,11 @@ RDEPEND="net-misc/curl
 DEPEND="${RDEPEND}"
 BDEPEND="virtual/pkgconfig"
 
+src_configure() {
+       lto-guarantee-fat
+       default
+}
+
 src_compile() {
        emake -j1 all
 }
@@ -33,4 +38,5 @@ src_install() {
                dodoc -r examples
                docompress -x /usr/share/doc/${PF}/examples
        fi
+       strip-lto-bytecode
 }

Reply via email to