From: simonmar Date: Tue, 16 Nov 1999 11:11:32 +0000 (+0000) Subject: [project @ 1999-11-16 11:11:32 by simonmar] X-Git-Tag: Approximately_9120_patches~5554 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=1c454a05b5eae2b2562f2c813a65a7435cf890d8;p=ghc-hetmet.git [project @ 1999-11-16 11:11:32 by simonmar] Pull in _regPrelude if we're profiling. --- diff --git a/ghc/driver/ghc.lprl b/ghc/driver/ghc.lprl index 71795af..432282d 100644 --- a/ghc/driver/ghc.lprl +++ b/ghc/driver/ghc.lprl @@ -1090,6 +1090,9 @@ sub setupLinkOpts { if (!$NoHaskellMain) { unshift (@Ld_flags,'-u', "${uscore}PrelMain_mainIO_closure"); } + if ($PROFing ne '') { + unshift (@Ld_flags,'-u', "${uscore}_regPrelude"); + } if ($TargetPlatform =~ /^powerpc-|^rs6000-/) { # sometimes we have lots of toc entries... # unshift(@Ld_flags, ('-Xlinker -bbigtoc -Xlinker -bnoquiet'));