[MLton-commit] r6861

Wesley Terpstra wesley at mlton.org
Wed Sep 17 19:55:53 PDT 2008


libarchive needs to link against pic mlton libraries
----------------------------------------------------------------------

U   mlton/trunk/mlton/main/main.fun

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

Modified: mlton/trunk/mlton/main/main.fun
===================================================================
--- mlton/trunk/mlton/main/main.fun	2008-09-18 02:03:53 UTC (rev 6860)
+++ mlton/trunk/mlton/main/main.fun	2008-09-18 02:55:51 UTC (rev 6861)
@@ -969,7 +969,10 @@
                       ["-lmlton", "-lgdtoa"],
                       addTargetOpts linkOpts]
       val linkArchives =
-         if !debugRuntime then 
+         if positionIndependent then 
+         [OS.Path.joinDirFile { dir = !libTargetDir, file = "libmlton-pic.a" }, 
+          OS.Path.joinDirFile { dir = !libTargetDir, file = "libgdtoa-pic.a" }]
+         else if !debugRuntime then 
          [OS.Path.joinDirFile { dir = !libTargetDir, file = "libmlton-gdb.a" }, 
           OS.Path.joinDirFile { dir = !libTargetDir, file = "libgdtoa-gdb.a" }]
          else 




More information about the MLton-commit mailing list