-
-
Save mbbx6spp/1297374 to your computer and use it in GitHub Desktop.
To fix ghc 7.0.x of all those horrible "text reloc warning" linker messages on OS X 10.7 (Lion). Based on comments to ticket #5128: http://hackage.haskell.org/trac/ghc/ticket/5128
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
exedir="/usr/local/Cellar/ghc/7.0.4/lib/ghc-7.0.4" | |
exeprog="ghc-stage2" | |
executablename="$exedir/$exeprog" | |
datadir="/usr/local/Cellar/ghc/7.0.4/share" | |
bindir="/usr/local/Cellar/ghc/7.0.4/bin" | |
topdir="/usr/local/Cellar/ghc/7.0.4/lib/ghc-7.0.4" | |
pgmgcc="/usr/bin/llvm-gcc" | |
extraopts=-optl"-Wl,-read_only_relocs,suppress" | |
executablename="$exedir/ghc" | |
exec "$executablename" -B"$topdir" $extraopts -pgmc "$pgmgcc" -pgma "$pgmgcc" -pgml "$pgmgcc" -pgmP "$pgmgcc -E -undef -traditional" ${1+"$@"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8a9 | |
> extraopts=-optl"-Wl,-read_only_relocs,suppress" | |
10c11 | |
< exec "$executablename" -B"$topdir" -pgmc "$pgmgcc" -pgma "$pgmgcc" -pgml "$pgmgcc" -pgmP "$pgmgcc -E -undef -traditional" ${1+"$@"} | |
--- | |
> exec "$executablename" -B"$topdir" $extraopts -pgmc "$pgmgcc" -pgma "$pgmgcc" -pgml "$pgmgcc" -pgmP "$pgmgcc -E -undef -traditional" ${1+"$@"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment