#5390: Hard-coded /Developer path in Mac ghc
---------------------------------+------------------------------------------
Reporter: Ahruman | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 7.0.3 | Keywords: platform
Testcase: | Blockedby:
Os: MacOS X | Blocking:
Architecture: Unknown/Multiple | Failure: GHC doesn't work at all
---------------------------------+------------------------------------------
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"
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5390>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs