[ghc/f17] only do the libffi headers workaround on tier 2 archs

Jens Petersen petersen at fedoraproject.org
Thu Mar 8 03:17:10 UTC 2012


commit 55671a621c42764471b4f36ad398fb54d9ae80da
Author: Jens Petersen <petersen at redhat.com>
Date:   Thu Mar 8 12:14:28 2012 +0900

    only do the libffi headers workaround on tier 2 archs

 ghc.spec |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/ghc.spec b/ghc.spec
index cbddc05..7908d06 100644
--- a/ghc.spec
+++ b/ghc.spec
@@ -194,8 +194,10 @@ rm -r ghc-tarballs/{mingw,perl}
 # use system libffi
 %patch4 -p1 -b .libffi
 rm -r ghc-tarballs/libffi
-# needed for secondary archs
+# needed for tier 2 archs
+%ifnarch %{ix86} x86_64
 ln -s $(pkg-config --variable=includedir libffi)/*.h libraries/base/include
+%endif
 
 %patch5 -p1 -b .orig
 


More information about the scm-commits mailing list