[GHC] #1021: GHC static libraries are not position independent in
OSX
GHC
trac at galois.com
Tue Nov 21 23:19:07 EST 2006
#1021: GHC static libraries are not position independent in OSX
-----------------------------+----------------------------------------------
Reporter: guest | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Build System | Version: 6.6
Severity: normal | Keywords:
Difficulty: Unknown | Testcase:
Architecture: powerpc | Os: MacOS X
-----------------------------+----------------------------------------------
GHC static libraries are not built position-independent in OSX, which
prevents the user from developing creating dynamic libraries and bundles
with Haskell code.
GHC should try to build its libraries with -fPIC in the architectures
which admit it.
Here is an example in OSX 10.3/ppc with GHC6.6 (built by macports)
echo "module Foo where" > Foo.hs
ghc -no-hs-main -optl -bundle -fPIC -o Foo.bundle Foo.hs
ld: /opt/local/lib/ghc-6.6/libHSbase.a(.o::Pack(void)) has local
relocation entries in non-writable section
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1021>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list