mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-04 13:47:35 -08:00
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:
parent
3e1ba8df1a
commit
d754b61371
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user