ocaml: num: Allow to disable dynamic linking
This commit is contained in:
12
pkgs/development/ocaml-modules/num/enable-static.patch
Normal file
12
pkgs/development/ocaml-modules/num/enable-static.patch
Normal file
@@ -0,0 +1,12 @@
|
||||
diff -u a/src/Makefile b/src/Makefile
|
||||
--- a/src/Makefile
|
||||
+++ b/src/Makefile
|
||||
@@ -45,7 +45,7 @@
|
||||
endif
|
||||
|
||||
libnums.$(A): $(COBJS)
|
||||
- $(OCAMLMKLIB) -oc nums $(COBJS)
|
||||
+ $(OCAMLMKLIB) -custom -oc nums $(COBJS)
|
||||
|
||||
nums.cma: $(CMOS)
|
||||
$(OCAMLMKLIB) -o nums -oc nums -linkall $(CMOS)
|
||||
Reference in New Issue
Block a user