mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
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)" ];
|
||||
|
||||
patches = [ ./optional-static.patch ];
|
||||
|
||||
meta = {
|
||||
description = "Parser and printer for the opam file syntax";
|
||||
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…
Reference in New Issue
Block a user