
#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: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by trommler): * cc: simonmar (added) Comment: How about this for a fix in the static case: 1. Prepare a dummy shared library `libHSC<package>.so` at build time where we use `ld` to deal with finding the right shared libraries. If the package depends on more than one C library still only one dummy shared library needs to be created. 2. Install the dummy shared library with the static library `libHS<package>.a` 3. Teach RTS linker to load the dummy shared library to satisfy C dependencies. I can look into this after #10458. CC'ing @simonmar -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9498#comment:16 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler