[project @ 2000-03-18 15:37:58 by panne]
authorpanne <unknown>
Sat, 18 Mar 2000 15:37:58 +0000 (15:37 +0000)
committerpanne <unknown>
Sat, 18 Mar 2000 15:37:58 +0000 (15:37 +0000)
Due to PrelException_PutFullMVar_static_closure there is a circular
dependency between libHS and libHSrts, which is broken during the
linking phase by mentioning -lHS again *after* -lHSrts. Hmmm, perhaps
it would be better to mention the smaller -lHSrts twice instead? With
this patch 4.06 can build 4.07, now let's see if it bootstraps...

ghc/driver/ghc.lprl

index 0ce3dc7..d2e0afc 100644 (file)
@@ -1154,7 +1154,9 @@ sub setupSyslibs {
   }
 
   # Push library HSrts, plus boring clib bit
-  push(@SysLibrary, "-lHSrts${BuildTag}");
+  # Note: The scheduler references a closure from PrelException,
+  # so the prelude lib is mentioned once again here.
+  push(@SysLibrary, "-lHSrts${BuildTag} -lHS${BuildTag}");
 
   #
   # RTS compiled with cygwin32, uses the WinMM API