logo       

RE: ghc-pkg -g fails on Solaris: msg#00051

lang.haskell.glasgow.bugs

Subject: RE: ghc-pkg -g fails on Solaris

On 18 January 2005 15:13, Duncan Coutts wrote:

> On all Unix platforms except Darwin, ghc-pkg calls:
> ld -r -x -o HSfoo.o --whole-archive libHSfoo.a
>
> See:
> ghc/utils/ghc-pkg/Main.hs, function autoBuildGHCiLib
>
> This works for the GNU linker. For the Solaris linker (which takes the
> name "ld", GNU ld gets "gld" if it's installed) this does not work.
>
> The Solaris linker does not understand the -x or --whole-archive
> flags.
>
> Actually I don't understand how GHC manages to install it's own
> libraries with GHCi support on Solaris if this doesn't work.
> Presumably the GHC build system builds the HSfoo.o files itself. Does
> anyone know how it is done?

This was always a hack. I guess we should make it a bit more portable.

Yes, the GHC build system builds the GHCi libs itself.

Cheers,
Simon


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise