about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/ocaml-modules/opam-file-format/optional-static.patch
blob: 5501fdd0c6c32f2b5c8ffd8e2f34994a42676550 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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)