ALL_RTS_LIBS is (ab)used for linking ghc when BootingFromHc=Yes, which needs libHSrtsmain.a before libHSrts.a.