ghc-pkg makes unnecessary assumptions on Solaris

Simon Marlow simonmar at microsoft.com
Mon Feb 2 05:59:52 EST 2004


 
> How do you install ghc so that ghc-pkg doesn't use the 
> Solaris linker, but instead
> the GNU linker which is called (here) gnu-ld?
> 
> Obviously it doesn't want to use the Solaris linker since 
> that doesn't have
> the --whole-archive option ghc-pkg needs.

There isn't a way to do this currently.  ghc-pkg's support for building
GHCi libs is just a quick hack, it doesn't try to do anything sensible
on systems which have GNU ld called something other than 'ld' (or system
which don't have GNU ld, for that matter).

Just invoke the appropriate ld command by hand.

Cheers,
	Simon


More information about the Glasgow-haskell-bugs mailing list