[GHC] #11042: Template Haskell / GHCi does not respect extra-lib-dirs
GHC
ghc-devs at haskell.org
Sun Nov 13 11:17:15 UTC 2016
#11042: Template Haskell / GHCi does not respect extra-lib-dirs
-------------------------------------+-------------------------------------
Reporter: mboes | Owner:
Type: bug | Status: infoneeded
Priority: normal | Milestone:
Component: Compiler | Version: 7.10.2
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: Compile-time | Unknown/Multiple
crash | Test Case:
Blocked By: 11238 | Blocking:
Related Tickets: #10458 #5289 | Differential Rev(s):
#12753 |
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by trommler):
Replying to [comment:18 rwbarton]:
> > But currently GHC's dynamic linker mimics the behavior of the (static)
RTS linker and would load `libz.so` before it loads `libHSzlib<...>.so`.
>
> Do you know why this is?
In `compiler/ghci/Linker.hs` `linkPackage` all dependencies of a package
are linked before we even learn whether the package is in a shared library
or an archive. That is probably the reason, but I don't know for sure.
> If we could just not do this, it might fix this issue, right?
Yes, that would fix this issue.
>
> I'm going to reopen this but mark as infoneeded, though I don't mind
much if it ends up being closed again.
Hmm, should I prepare a patch that implements the fix described here?
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11042#comment:21>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list