[GHC] #8266: Dynamic linking on Mac
GHC
ghc-devs
Thu Oct 3 15:34:47 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):
Replying to [comment:8 kazu-yamamoto]:
> GHC should call GCC with "-Wl,-rpath,<path>":
>
> {{{
> % cat test.hs
> main = putStrLn "Hello"
> % ghc -fforce-recomp -dynamic test.hs -optl "-Wl,-rpath,/ghc-
head/lib/ghc-7.7.20131001/"
> % ./test
> Hello
> }}}
There is the `-fuse-rpaths` flag, perhaps this can be enabled by default
on OS X when building an executable? I haven't tested the flag though.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8266#comment:12>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list