[GHC] #8266: Dynamic linking on Mac
GHC
ghc-devs
Fri Oct 4 08:55:09 UTC 2013
#8266: Dynamic linking on Mac
--------------------------------------------+------------------------------
Reporter: kazu-yamamoto | Owner:
Type: bug | Status: patch
Priority: highest | Milestone: 7.8.1
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):
I've updated my patch so that executables built by ghc now get an rpath
link to ghc's `topDir`: https://gist.github.com/christiaanb/6822676
I think the behaviour on OS X and Linux is now almost the same:
* Linux: multiple absolute rpath's to all the dependent package
directories
* OS X: single rpath; relative, rpath-referencing, locations for GHC-
installed packages; absolute locations for user-installed packages
Perhaps a future version of GHC could have an even more desirable
situation on OS X:
* two rpaths: user/cabal location and ghc location
* All libraries locations are relative, rpath-referencing
This would make distribution of a dynamically-linked OS X binary easier,
as you would only need to add extra rpath(s) for the location of the
dependent packages.
This would require an update in Cabal however, as it needs to add the
second rpath to the executable.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8266#comment:14>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list