[GHC] #9498: GHC links against unversioned .so files

GHC ghc-devs at haskell.org
Sat Mar 21 21:39:40 UTC 2015


#9498: GHC links against unversioned .so files
-------------------------------------+-------------------------------------
        Reporter:  Kritzefitz        |                   Owner:
            Type:  feature request   |                  Status:  new
        Priority:  low               |               Milestone:
       Component:  Compiler (FFI)    |                 Version:  7.6.3
      Resolution:                    |                Keywords:  Debian
Operating System:  Linux             |            Architecture:
 Type of failure:  Other             |  Unknown/Multiple
      Blocked By:                    |               Test Case:
 Related Tickets:                    |                Blocking:
                                     |  Differential Revisions:
-------------------------------------+-------------------------------------

Comment (by thomie):

 You're right!

 curl's cabal file would still contain `extra-libraries: curl`. But when
 installing curl, whoever decides the parameters for the ghc-pkg file
 (either cabal or ghc, I don't know at the moment) could ask the linker
 which version it actually found, and write `extra-libraries:
 :libcurl.so.<version>` to the ghc-pkg file.

 That should work (at least on linux).

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9498#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list