about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2011-03-23 16:36:43 -0700
committerPatrick Walton <pcwalton@mimiga.net>2011-03-23 16:37:45 -0700
commitb7003ae6fa4493b81351496eac2fbfe7d1105e22 (patch)
treefd3f3bdf5b35d23295d2da49755bb74fac1cf26d
parent08bea1d9a2347841711987fc0cd4457e43b2cc96 (diff)
build: On newer MinGWs it seems that flexlink needs "-cclib -L/usr/lib". Add this.
-rw-r--r--Makefile.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in
index 7c036fd6f7a..8685cfa6a54 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -270,6 +270,10 @@ BOOT_ML_NATIVE_LIBS := unix.cmxa nums.cmxa bigarray.cmxa
 BOOT_OCAMLC_FLAGS   := -g $(BOOT_ML_INCS) -w Ael -warn-error Ael
 BOOT_OCAMLOPT_FLAGS := -g $(BOOT_ML_INCS) -w Ael -warn-error Ael
 
+ifdef CFG_FLEXLINK
+  BOOT_OCAMLOPT_FLAGS += -cclib -L/usr/lib
+endif
+
 ######################################################################
 # Runtime (C++) library variables
 ######################################################################