Skip to content

Instantly share code, notes, and snippets.

@milkypostman
Created October 25, 2011 14:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save milkypostman/1312826 to your computer and use it in GitHub Desktop.
Save milkypostman/1312826 to your computer and use it in GitHub Desktop.
Patch for GHC 7.0.4 to avoid warnings when compiling.
--- ./ghc/ghc.wrapper.old 2011-10-25 08:57:34.000000000 -0500
+++ ./ghc/ghc.wrapper 2011-10-25 08:57:06.000000000 -0500
@@ -1 +1 @@
-exec "$executablename" -B"$topdir" -pgmc "$pgmgcc" -pgma "$pgmgcc" -pgml "$pgmgcc" -pgmP "$pgmgcc -E -undef -traditional" ${1+"$@"}
+exec "$executablename" -B"$topdir" -pgmc "$pgmgcc" -pgma "$pgmgcc" -optl "-Wl,-read_only_relocs,suppress" -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