[GHC] #9498: GHC links against unversioned .so files
GHC
ghc-devs at haskell.org
Fri Jan 15 11:35:07 UTC 2016
#9498: GHC links against unversioned .so files
-------------------------------------+-------------------------------------
Reporter: Kritzefitz | Owner:
Type: feature request | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.6.3
(Linking) |
Resolution: | Keywords: Debian
Operating System: Linux | Architecture:
| Unknown/Multiple
Type of failure: Other | Test Case:
Blocked By: 10458 | Blocking: 9237
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by simonmar):
> Is the C library going to be a static (archive) or da dynamic (shared
object) library?
Usually both, so that you can use `-optl-static` if you want. The `-dev`
package of a C library normally includes both the unversioned `.so` and
the `.a`.
Remember that GHC links static Haskell packages but dynamic C libraries by
default.
> If it is the latter then I think it would still work with comment:16 and
if we pass a linker flag (something along the lines of copy all DT_NEEDED
tags for C libraries from the dummy SO into the executable) the
performance impact would be small.
Did you know the code in `Linker.lhs` is only used for GHCi and not
linking of standalone executables? I have a suspicion that there's some
confusion here. There is no "dummy SO" when linking a standalone
executable.
Since you have a design in mind, maybe it would be good to flesh it out in
a wiki page so we can discuss with more precision?
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9498#comment:25>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list