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...
}
# 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