[MLton-commit] r4260

Stephen Weeks MLton@mlton.org
Tue, 29 Nov 2005 15:09:14 -0800


Added -I/usr/local/include on FreeBSD to get gmp.h.

----------------------------------------------------------------------

U   mlton/trunk/bin/mlton-script
U   mlton/trunk/runtime/Makefile

----------------------------------------------------------------------

Modified: mlton/trunk/bin/mlton-script
===================================================================
--- mlton/trunk/bin/mlton-script	2005-11-29 18:46:19 UTC (rev 4259)
+++ mlton/trunk/bin/mlton-script	2005-11-29 23:09:12 UTC (rev 4260)
@@ -84,6 +84,7 @@
                 '-m32
                 -mtune=opteron'                                 \
         -target-cc-opt darwin '-I/sw/include'                   \
+	-target-cc-opt freebsd '-I/usr/local/include'		\
         -target-cc-opt solaris                                  \
                 '-Wa,-xarch=v8plusa
                 -mcpu=ultrasparc'                               \

Modified: mlton/trunk/runtime/Makefile
===================================================================
--- mlton/trunk/runtime/Makefile	2005-11-29 18:46:19 UTC (rev 4259)
+++ mlton/trunk/runtime/Makefile	2005-11-29 23:09:12 UTC (rev 4260)
@@ -31,6 +31,10 @@
 FLAGS += -mcpu=v8 -m32
 endif
 
+ifeq ($(TARGET_OS), freebsd)
+FLAGS += -I/usr/local/include
+endif
+
 ifeq ($(TARGET_OS), solaris)
 FLAGS += -Wa,-xarch=v8plusa -funroll-all-loops -mcpu=ultrasparc
 endif