File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,8 @@ TOINSTALL += $(CMIDOC)
6262OCAMLFLAGS += -bin-annot
6363endif
6464
65+ MKLIBLDFLAGS = $(foreach flag, $(LDFLAGS ) , -ldopt $(flag ) )
66+
6567# build targets
6668# ##############
6769
@@ -71,16 +73,16 @@ tests:
7173 make -C tests test
7274
7375zarith.cma : $(MLSRC:%.ml=%.cmo )
74- $(OCAMLMKLIB ) $(DEBUG ) -failsafe -o zarith $+ -ldopt " $( LIBS) "
76+ $(OCAMLMKLIB ) $(DEBUG ) -failsafe -o zarith $+ $(LIBS ) $( MKLIBLDFLAGS )
7577
7678zarith.cmxa : $(MLSRC:%.ml=%.cmx )
77- $(OCAMLMKLIB ) $(DEBUG ) -failsafe -o zarith $+ -ldopt " $( LIBS) "
79+ $(OCAMLMKLIB ) $(DEBUG ) -failsafe -o zarith $+ $(LIBS ) $( MKLIBLDFLAGS )
7880
7981zarith.cmxs : zarith.cmxa libzarith.$(LIBSUFFIX )
8082 $(OCAMLOPT ) -shared -o $@ -I . zarith.cmxa -linkall
8183
8284libzarith.$(LIBSUFFIX ) : $(CSRC:%.c=%.$(OBJSUFFIX ) )
83- $(OCAMLMKLIB ) $(DEBUG ) -failsafe -o zarith $+ -ldopt " $( LIBS) "
85+ $(OCAMLMKLIB ) $(DEBUG ) -failsafe -o zarith $+ $(LIBS ) $( MKLIBLDFLAGS )
8486
8587zarith_top.cma : zarith_top.cmo
8688 $(OCAMLC ) $(DEBUG ) -o $@ -a $<
You can’t perform that action at this time.
0 commit comments