Am Mittwoch, 7. Dezember 2005 12:21 schrieb Duncan Coutts:
> On Fri, 2005-12-02 at 11:06 +0000, Simon Marlow wrote:
> > On 30 November 2005 12:29, Duncan Coutts wrote:
> > > Attached is a simple code change to allow packages to specify a
> > > different list of "extra libraries" to link with when using the ghci
> > > and dlopen/LoadLibrary compared to when using the native system
> > > linker.
> >
> > Yes to the idea in principle; please go ahead and complete the patch.
>
> Ok, attached is the full patch. It has to be in two parts since the
> darcs repos for ghc and the libraries are separate.
>
> I've briefly tested the change. I built Gtk2Hs with ghc-6.5 with the
> patch. I modified (and registered) the gtk.package.conf file so that it
> specified:
>
> extra-libraries: "gtk-x11-2.0", [...snip...], "pthread"
> extra-ghci-libraries: "gtk-x11-2.0", [...snip...]
> [...]
Hmmm, I haven't followed the thread too closely, but aren't we just hacking
around the real cause here? Wouldn't it be better to teach GHCi's linker
about the ld scripts, at least in a very basic form? My concern is that the
proposed hack puts additional burden onto the autoconf magic of package
developers and makes doing "the right thing" portably quite tricky, I
guess...
Cheers,
S.
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs