mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-09 18:47:16 -08:00
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:
@@ -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
|
||||
|
||||
@@ -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)"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user