Ticket #5390 (closed bug: fixed)
Hard-coded /Developer path in Mac ghc
| Reported by: | Ahruman | Owned by: | pumpkin |
|---|---|---|---|
| Priority: | low | Milestone: | 7.6.1 |
| Component: | Compiler | Version: | 7.0.3 |
| Keywords: | platform | Cc: | |
| Operating System: | MacOS X | Architecture: | Unknown/Multiple |
| Type of failure: | GHC doesn't work at all | Difficulty: | Unknown |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description (last modified by igloo) (diff)
The Haskell Platform package for Mac OS X installs a /usr/bin/ghc script which hard-codes the path to gcc as:
pgmgcc="/Developer/usr/bin/gcc"
This is incorrect, as Xcode tools can be installed at semi-arbitrary locations, and there may be several versions installed. The correct approach is:
developerpath=`xcode-select --print-path` # Produces "/Developer" or alternative path pgmgcc="$developerpath/usr/bin/gcc"
Change History
Note: See
TracTickets for help on using
tickets.
