ocaml: opam-file-format: Allow to disable dynamic linking
This commit is contained in:
parent
07b838f13b
commit
484e0a89f9
@ -15,6 +15,8 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
installFlags = [ "LIBDIR=$(OCAMLFIND_DESTDIR)" ];
|
installFlags = [ "LIBDIR=$(OCAMLFIND_DESTDIR)" ];
|
||||||
|
|
||||||
|
patches = [ ./optional-static.patch ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Parser and printer for the opam file syntax";
|
description = "Parser and printer for the opam file syntax";
|
||||||
license = stdenv.lib.licenses.lgpl21;
|
license = stdenv.lib.licenses.lgpl21;
|
||||||
|
@ -0,0 +1,13 @@
|
|||||||
|
diff -u a/Makefile b/Makefile
|
||||||
|
--- a/Makefile
|
||||||
|
+++ b/Makefile
|
||||||
|
@@ -1,1 +1,5 @@
|
||||||
|
-TARGETS = opam-file-format.cma opam-file-format.cmxa opam-file-format.cmxs
|
||||||
|
+TARGETS = opam-file-format.cma opam-file-format.cmxa
|
||||||
|
+
|
||||||
|
+ifeq "$(NATDYNLINK)" "true"
|
||||||
|
+TARGETS = $(TARGETS) opam-file-format.cmxs
|
||||||
|
+endif
|
||||||
|
|
||||||
|
all: $(TARGETS)
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user