[GHC] #8266: Dynamic linking on Mac

GHC ghc-devs at haskell.org
Tue Sep 24 14:40:29 CEST 2013


#8266: Dynamic linking on Mac
--------------------------------------------+------------------------------
        Reporter:  kazu-yamamoto            |            Owner:
            Type:  bug                      |           Status:  new
        Priority:  highest                  |        Milestone:
       Component:  Build System             |          Version:  7.7
      Resolution:                           |         Keywords:
Operating System:  MacOS X                  |     Architecture:
 Type of failure:  GHC doesn't work at all  |  Unknown/Multiple
       Test Case:                           |       Difficulty:  Unknown
        Blocking:                           |       Blocked By:
                                            |  Related Tickets:
--------------------------------------------+------------------------------

Comment (by darchon):

 The provided patch makes all library references relative.
 Dynamic libraries now refer to @rpath instead of @loader_path for the
 location of other installed dynlibs.
 All executables, hence also the ghc binary, set an @rpath link/anchor to:
 "@loader_path/..", meaning that all package directories must be in the
 same directory as the parent directory of the executable.

 If the ghc binary is ever moved from <TOP>/lib/bin, the @rpath link should
 me updated accordingly.

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



More information about the ghc-tickets mailing list