[MLton-commit] r6893

Wesley Terpstra wesley at mlton.org
Tue Sep 30 08:44:52 PDT 2008


The link order is backwards in the regression test. 
This matters for static linkage (eg. windows import libraries).


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

U   mlton/trunk/regression/library/library-test

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

Modified: mlton/trunk/regression/library/library-test
===================================================================
--- mlton/trunk/regression/library/library-test	2008-09-24 18:07:59 UTC (rev 6892)
+++ mlton/trunk/regression/library/library-test	2008-09-30 15:44:46 UTC (rev 6893)
@@ -18,11 +18,11 @@
 
 # Compile DSO #2
 $ML "${O[@]}" "$@" -format libarchive libm3.sml libm3.c
-$ML "${O[@]}" "$@" ${LIB}m2 ${LIB}m3 -format library libm4.sml libm4.c
+$ML "${O[@]}" "$@" ${LIB}m3 ${LIB}m2 -format library libm4.sml libm4.c
 
 # Compile executable
 $ML "${O[@]}" "$@" -format archive libm5.sml libm5.c
-$ML "${O[@]}" "$@" ${LIB}m4 ${LIB}m5 -format executable \
+$ML "${O[@]}" "$@" ${LIB}m5 ${LIB}m4 -format executable \
   -default-ann 'allowFFI true' -export-header check.h check.sml check.c
 
 # Check that symbols resolved correctly




More information about the MLton-commit mailing list