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@gentoo.org>
This commit is contained in:
Eli Schwartz 2025-12-11 23:47:25 -05:00
parent 3e1ba8df1a
commit d754b61371
No known key found for this signature in database
GPG Key ID: 84A7D12B700D2F57

View File

@ -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