From 79b47efd5460734db365fd733c73831c4ef7785e Mon Sep 17 00:00:00 2001 From: panne Date: Sat, 18 Mar 2000 15:37:58 +0000 Subject: [PATCH] [project @ 2000-03-18 15:37:58 by panne] 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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ghc/driver/ghc.lprl b/ghc/driver/ghc.lprl index 0ce3dc7..d2e0afc 100644 --- a/ghc/driver/ghc.lprl +++ b/ghc/driver/ghc.lprl @@ -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 -- 1.7.10.4