dev-ml/num: respect ocamlopt

Closes: https://bugs.gentoo.org/822321
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
Alfredo Tupone
2022-01-12 20:03:24 +01:00
parent c33c6f5649
commit df63ec0cfb
2 changed files with 17 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
--- a/src/Makefile 2022-01-12 19:58:54.655901110 +0100
+++ b/src/Makefile 2022-01-12 19:59:25.446339664 +0100
@@ -33,11 +33,10 @@
all:: libnums.$(A) nums.cma
+ifeq "$(NATDYNLINK)" "true"
ifneq "$(ARCH)" "none"
all:: nums.cmxa
endif
-
-ifeq "$(NATDYNLINK)" "true"
all:: nums.cmxs
endif
+2
View File
@@ -19,6 +19,8 @@ RDEPEND="dev-lang/ocaml:=[ocamlopt?]"
BDEPEND="${RDEPEND}"
DEPEND="dev-ml/findlib:=[ocamlopt?]"
PATCHES=( "${FILESDIR}"/${P}-ocamlopt.patch )
src_compile() {
emake CFLAGS="${CFLAGS}" NATDYNLINK="$(usex ocamlopt true false)"
}