[ghc/f17] fix build with system libffi on secondary archs by including libffi headers in base/include

Jens Petersen petersen at fedoraproject.org
Sat Feb 18 14:20:12 UTC 2012


commit b3aff85286aa88192ec41e90ee79802d6a00ba74
Author: Jens Petersen <petersen at redhat.com>
Date:   Sat Feb 18 23:19:58 2012 +0900

    fix build with system libffi on secondary archs by including libffi headers in base/include

 ghc.spec |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/ghc.spec b/ghc.spec
index b7ad98a..40f20b1 100644
--- a/ghc.spec
+++ b/ghc.spec
@@ -190,6 +190,7 @@ rm -r ghc-tarballs/{mingw,perl}
 # use system libffi
 %patch4 -p1 -b .libffi
 rm -r ghc-tarballs/libffi
+ln -s $(pkg-config --variable=includedir libffi)/*.h libraries/base/include
 
 %patch5 -p1 -b .orig
 
@@ -416,7 +417,9 @@ fi
 
 %changelog
 * Thu Feb  9 2012 Jens Petersen <petersen at redhat.com> - 7.0.4-41.1
-- bootstrap build for ARM
+- bootstrap build
+- fix build with system libffi on secondary archs by including libffi headers
+  in base/include
 
 * Thu Jan 19 2012 Jens Petersen <petersen at redhat.com>
 - move ghc-ghc-devel from ghc-libraries to the ghc metapackage


More information about the scm-commits mailing list