commit:     d754b61371a961e270236618fdded15f46bd201c
Author:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 12 04:47:25 2025 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Fri Dec 12 12:30:39 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d754b613

dev-ml/lablgl: use dot-a.eclass

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

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

 dev-ml/lablgl/lablgl-1.07-r1.ebuild | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/dev-ml/lablgl/lablgl-1.07-r1.ebuild 
b/dev-ml/lablgl/lablgl-1.07-r1.ebuild
index 781dd36b9f9c..2f6fb48ec466 100644
--- a/dev-ml/lablgl/lablgl-1.07-r1.ebuild
+++ b/dev-ml/lablgl/lablgl-1.07-r1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit toolchain-funcs
+inherit dot-a toolchain-funcs
 
 DESCRIPTION="Objective CAML interface for OpenGL"
 HOMEPAGE="https://github.com/garrigue/lablgl";
@@ -37,6 +37,7 @@ DEPEND="
 PATCHES=( "${FILESDIR}"/${PN}-1.06-makefile.patch )
 
 src_configure() {
+       lto-guarantee-fat
        # make configuration file
        echo "BINDIR=/usr/bin" > Makefile.config || die
        echo "GLLIBS = -lGL -lGLU" >> Makefile.config || die
@@ -88,6 +89,7 @@ src_install() {
        BINDIR="${ED}/usr/bin"
        BASE="${ED}/usr/$(get_libdir)/ocaml"
        emake BINDIR="${BINDIR}" INSTALLDIR="${BASE}/lablGL" 
DLLDIR="${BASE}/stublibs" install
+       strip-lto-bytecode
 
        dodoc README CHANGES
 

Reply via email to