Skip to content

Commit 5393460

Browse files
committed
tentative fix after merging #124 broke some builds
1 parent 96c122a commit 5393460

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

project.mak

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ TOINSTALL += $(CMIDOC)
6262
OCAMLFLAGS += -bin-annot
6363
endif
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

7375
zarith.cma: $(MLSRC:%.ml=%.cmo)
74-
$(OCAMLMKLIB) $(DEBUG) -failsafe -o zarith $+ -ldopt "$(LIBS)"
76+
$(OCAMLMKLIB) $(DEBUG) -failsafe -o zarith $+ $(LIBS) $(MKLIBLDFLAGS)
7577

7678
zarith.cmxa: $(MLSRC:%.ml=%.cmx)
77-
$(OCAMLMKLIB) $(DEBUG) -failsafe -o zarith $+ -ldopt "$(LIBS)"
79+
$(OCAMLMKLIB) $(DEBUG) -failsafe -o zarith $+ $(LIBS) $(MKLIBLDFLAGS)
7880

7981
zarith.cmxs: zarith.cmxa libzarith.$(LIBSUFFIX)
8082
$(OCAMLOPT) -shared -o $@ -I . zarith.cmxa -linkall
8183

8284
libzarith.$(LIBSUFFIX): $(CSRC:%.c=%.$(OBJSUFFIX))
83-
$(OCAMLMKLIB) $(DEBUG) -failsafe -o zarith $+ -ldopt "$(LIBS)"
85+
$(OCAMLMKLIB) $(DEBUG) -failsafe -o zarith $+ $(LIBS) $(MKLIBLDFLAGS)
8486

8587
zarith_top.cma: zarith_top.cmo
8688
$(OCAMLC) $(DEBUG) -o $@ -a $<

0 commit comments

Comments
 (0)