Ticket #1021 (closed bug: duplicate)
GHC static libraries are not position independent in OSX
| Reported by: | guest | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.8.2 |
| Component: | Build System | Version: | 6.6 |
| Keywords: | Cc: | ||
| Operating System: | MacOS X | Architecture: | powerpc |
| Type of failure: | Difficulty: | Unknown | |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
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
Change History
Note: See
TracTickets for help on using
tickets.
