5cc7cbb
diff -up ghc-7.0.2/aclocal.m4.pthread ghc-7.0.2/aclocal.m4
5cc7cbb
--- ghc-7.0.2/aclocal.m4.pthread	2011-02-28 13:10:03.000000000 -0500
5cc7cbb
+++ ghc-7.0.2/aclocal.m4	2011-04-20 07:12:36.489772545 -0400
5cc7cbb
@@ -1385,7 +1385,7 @@ AC_MSG_NOTICE(Building in-tree ghc-pwd)
5cc7cbb
     dnl except we don't want to have to know what make is called. Sigh.
5cc7cbb
     rm -rf utils/ghc-pwd/dist-boot
5cc7cbb
     mkdir  utils/ghc-pwd/dist-boot
5cc7cbb
-    if ! "$WithGhc" -v0 -no-user-package-conf -hidir utils/ghc-pwd/dist-boot -odir utils/ghc-pwd/dist-boot -stubdir utils/ghc-pwd/dist-boot --make utils/ghc-pwd/Main.hs -o utils/ghc-pwd/dist-boot/ghc-pwd
5cc7cbb
+    if ! "$WithGhc" -optl-pthread -v0 -no-user-package-conf -hidir utils/ghc-pwd/dist-boot -odir utils/ghc-pwd/dist-boot -stubdir utils/ghc-pwd/dist-boot --make utils/ghc-pwd/Main.hs -o utils/ghc-pwd/dist-boot/ghc-pwd
5cc7cbb
     then
5cc7cbb
         AC_MSG_ERROR([Building ghc-pwd failed])
5cc7cbb
     fi
5cc7cbb
diff -up ghc-7.0.4/ghc/ghc.wrapper.pthread ghc-7.0.4/ghc/ghc.wrapper
5cc7cbb
--- ghc-7.0.4/ghc/ghc.wrapper.pthread	2012-03-09 09:39:58.205330373 +0900
5cc7cbb
+++ ghc-7.0.4/ghc/ghc.wrapper	2012-03-09 09:41:01.791237737 +0900
5cc7cbb
@@ -1 +1 @@
5cc7cbb
-exec "$executablename" -B"$topdir" -pgmc "$pgmgcc" -pgma "$pgmgcc" -pgml "$pgmgcc" -pgmP "$pgmgcc -E -undef -traditional" -optc-I$(pkg-config --variable=includedir libffi) ${1+"$@"}
5cc7cbb
+exec "$executablename" -B"$topdir" -pgmc "$pgmgcc" -pgma "$pgmgcc" -pgml "$pgmgcc" -pgmP "$pgmgcc -E -undef -traditional" -optl-pthread -optc-I$(pkg-config --variable=includedir libffi) ${1+"$@"}