[MLton-commit] r4904

Matthew Fluet fluet at mlton.org
Mon Dec 4 12:36:41 PST 2006


Wrong quotes for shell expansion
----------------------------------------------------------------------

U   mlton/trunk/bin/mlton-script

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

Modified: mlton/trunk/bin/mlton-script
===================================================================
--- mlton/trunk/bin/mlton-script	2006-12-04 15:01:00 UTC (rev 4903)
+++ mlton/trunk/bin/mlton-script	2006-12-04 20:36:30 UTC (rev 4904)
@@ -69,11 +69,12 @@
 
 # The darwin linker complains (loudly) about non-existent library
 # search paths.
-if [ -d '/opt/local/lib' ]; then 	 
-        darwinLinkOpts='-L/opt/local/lib'
+darwinLinkOpts=''
+if [ -d '/opt/local/lib' ]; then
+        darwinLinkOpts="$darwinLinkOpts -L/opt/local/lib"
 fi
-if [ -d '/sw/lib' ]; then 	 
-        darwinLinkOpts='$darwinLinkOpts -L/sw/lib'
+if [ -d '/sw/lib' ]; then
+        darwinLinkOpts="$darwinLinkOpts -L/sw/lib"
 fi
 
 doit "$lib" \
@@ -101,7 +102,7 @@
                 -malign-jumps=2
                 -malign-loops=2'                                 \
         -target-link-opts amd64 '-m32'                           \
-        -target-link-opts darwin '$darwinLinkOpts'               \
+        -target-link-opts darwin "$darwinLinkOpts"               \
         -target-link-opts freebsd '-L/usr/local/lib/'            \
         -target-link-opts mingw                                  \
                 '-lws2_32 -lkernel32 -lpsapi -lnetapi32'         \




More information about the MLton-commit mailing list