Ticket #3550 (closed bug: fixed)
Dynamic libraries don't work on Mac OS/X
| Reported by: | StephenBlackheath | Owned by: | igloo |
|---|---|---|---|
| Priority: | high | Milestone: | 6.12.3 |
| Component: | Compiler | Version: | 6.11 |
| Keywords: | dynamic mac osx | Cc: | mwotton, pho@…, nonowarn@… |
| Operating System: | MacOS X | Architecture: | Unknown/Multiple |
| Type of failure: | None/Unknown | Difficulty: | Unknown |
| Test Case: | http://upcycle.it/~blackh/ghc/test-case.tar.bz2 | Blocked By: | |
| Blocking: | Related Tickets: |
Description
GHC doesn't build properly on Mac OS/X when dynamic library support is enabled. And, when GHC is successfully built with dynamic library support (with tweaks), it doesn't build or link dynamic libraries properly.
I've provided a set of patches, broken up with explanations. We need to discuss whether adding an -install-name option to GHC is acceptable to the GHC team.
Note: A separate patch for Cabal uses the new -install-name option. Without this applying this in the ghc tree, the Cabal installed along with ghc will not generate shared libraries on Mac OS/X with the right install name.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

