summaryrefslogtreecommitdiffstats
path: root/tools/ghc/ghc-powerpc-pthread.patch
diff options
context:
space:
mode:
authorJens Petersen <petersen@redhat.com>2014-02-11 22:06:01 +0900
committerJens Petersen <petersen@redhat.com>2014-02-11 22:06:01 +0900
commit3f80e38a43b3cfb328490259c15418ab51c774c1 (patch)
tree083d6cb556f41b64308d1b4a9a1f904590af8302 /tools/ghc/ghc-powerpc-pthread.patch
parent02714f7f0c6fc2abc45fa4332c69f0645e327502 (diff)
downloadpandoc-standalone-3f80e38a43b3cfb328490259c15418ab51c774c1.tar.gz
pandoc-standalone-3f80e38a43b3cfb328490259c15418ab51c774c1.tar.xz
pandoc-standalone-3f80e38a43b3cfb328490259c15418ab51c774c1.zip
tools: import spec files of all packages needed to build pandoc
Diffstat (limited to 'tools/ghc/ghc-powerpc-pthread.patch')
-rw-r--r--tools/ghc/ghc-powerpc-pthread.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/ghc/ghc-powerpc-pthread.patch b/tools/ghc/ghc-powerpc-pthread.patch
new file mode 100644
index 0000000..d317ff7
--- /dev/null
+++ b/tools/ghc/ghc-powerpc-pthread.patch
@@ -0,0 +1,18 @@
+diff -up ghc-7.0.2/aclocal.m4.pthread ghc-7.0.2/aclocal.m4
+--- ghc-7.0.2/aclocal.m4.pthread 2011-02-28 13:10:03.000000000 -0500
++++ ghc-7.0.2/aclocal.m4 2011-04-20 07:12:36.489772545 -0400
+@@ -1385,7 +1385,7 @@ AC_MSG_NOTICE(Building in-tree ghc-pwd)
+ dnl except we don't want to have to know what make is called. Sigh.
+ rm -rf utils/ghc-pwd/dist-boot
+ mkdir utils/ghc-pwd/dist-boot
+- 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
++ 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
+ then
+ AC_MSG_ERROR([Building ghc-pwd failed])
+ fi
+diff -up ghc-7.0.2/ghc/ghc.wrapper.pthread ghc-7.0.2/ghc/ghc.wrapper
+--- ghc-7.0.2/ghc/ghc.wrapper.pthread 2011-04-20 09:58:50.307894773 -0400
++++ ghc-7.0.2/ghc/ghc.wrapper 2011-04-20 09:59:14.477894370 -0400
+@@ -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" -pgml "$pgmgcc" -pgmP "$pgmgcc -E -undef -traditional" -optl-pthread ${1+"$@"}