Interface loading and dynamic linking

Carter Schonwald carter.schonwald at gmail.com
Mon Dec 23 18:02:37 UTC 2013


I think part of what Ian is saying is that the default config for a Perf
build for HEAD will build the dylib versions of all the libraries. Or am I
not understanding the question?

eg: see the default make file
https://github.com/ghc/ghc/blob/master/mk/build.mk.sample#L55-L75


On Mon, Dec 23, 2013 at 12:59 PM, Ben Gamari <bgamari.foss at gmail.com> wrote:

> Ian Lynagh <igloo at earth.li> writes:
>
> > You shouldn't need dynamic-by-default. It should Just Work in HEAD, both
> > unregisterised and registerised.
> >
> Just to clarify, how does one configure GHCi to use dynamic linking now?
> Should I interpret your message to mean that it is already configured
> this way? Where in the tree is this configured?
>
> To be perfectly clear, I want to ensure that dynamic linking is always
> preferred over linking static objects with the RTS linker. Will this
> happen as things stand? How does GHCi decide how to load a library? Is
> this the role of GhcDynamic?
>
> I'm still not really sure why `DYNAMIC_BY_DEFAULT` should be causing the
> problems I'm observing. It seems to me that it is functionally equivalent
> to passing the `-dynamic` flag as they both simply add `WayDyn` to
> DynFlag's
> `ways` list. Do you have any idea where they might differ?
>
> Cheers,
>
> - Ben
>
>
> _______________________________________________
> ghc-devs mailing list
> ghc-devs at haskell.org
> http://www.haskell.org/mailman/listinfo/ghc-devs
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/ghc-devs/attachments/20131223/5cc7a7c0/attachment.html>


More information about the ghc-devs mailing list