[MLton-devel] cvs commit: reversing -link args

Stephen Weeks sweeks@users.sourceforge.net
Mon, 07 Jul 2003 08:23:45 -0700


sweeks      03/07/07 08:23:44

  Modified:    doc      changelog
               mlton/main main.sml
  Log:
  When calling gcc for linking, put -link args in same order as they
  appeared on the MLton command line (they used to be reversed).

Revision  Changes    Path
1.50      +4 -0      mlton/doc/changelog

Index: changelog
===================================================================
RCS file: /cvsroot/mlton/mlton/doc/changelog,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -r1.49 -r1.50
--- changelog	3 Jul 2003 17:10:06 -0000	1.49
+++ changelog	7 Jul 2003 15:23:44 -0000	1.50
@@ -2,6 +2,10 @@
 
 At this point, the only missing basis library function is "use".
 
+* 2003-07-07
+  - When calling gcc for linking, put -link args in same order as they
+    appeared on the MLton command line (they used to be reversed).
+
 * 2003-07-03
   - Making OS.Process.{atExit,exit} conform to the basis library spec
     in that exceptions raised during cleaners are caught and ignored.



1.141     +1 -1      mlton/mlton/main/main.sml

Index: main.sml
===================================================================
RCS file: /cvsroot/mlton/mlton/mlton/main/main.sml,v
retrieving revision 1.140
retrieving revision 1.141
diff -u -r1.140 -r1.141
--- main.sml	5 Jul 2003 23:30:26 -0000	1.140
+++ main.sml	7 Jul 2003 15:23:44 -0000	1.141
@@ -637,7 +637,7 @@
 				     list ("-l",
 					   (if !debug then "mlton-gdb"
 					    else "mlton")
-					    :: (defaultLibs @ (!libs))),
+					    :: (rev (!libs) @ defaultLibs)),
 				     linkWithGmp]
 		     datatype debugFormat =
 			Dwarf | DwarfPlus | Dwarf2 | Stabs | StabsPlus





-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
MLton-devel mailing list
MLton-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlton-devel