[GHC] #5136: linkerscript fix from #2615 breaks Darwin
GHC
cvs-ghc at haskell.org
Tue Apr 19 16:52:46 CEST 2011
#5136: linkerscript fix from #2615 breaks Darwin
----------------------------------+-----------------------------------------
Reporter: guest | Owner:
Type: bug | Status: closed
Priority: normal | Milestone:
Component: Compiler | Version: 6.12.3
Resolution: fixed | Keywords:
Testcase: | Blockedby:
Difficulty: | Os: MacOS X
Blocking: | Architecture: Unknown/Multiple
Failure: Building GHC failed |
----------------------------------+-----------------------------------------
Comment(by guest):
I tested both on Darwin 8 and Darwin 9 (no Darwin 10 here, sorry), same
result on both.
Mach-O does not support GNU linker scripts. They don't need those either,
since references are absolute (install_name), hence a symlink will do.
FWIW:
On Gentoo they are mostly used because of a preference of GCC to link
statically iso shared when a static archive is found first. The linker
script (.so) is put right next to it, such that GCC will decide to make a
shared link instead. The GNU linker then follows the script from /usr/lib
to the real library object in /lib at link time when invoked from GCC.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5136#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list