[ghc] set CC to clang for ARM

Jens Petersen petersen at fedoraproject.org
Fri Apr 13 15:23:15 UTC 2012


commit 4bbcdfba1a9e102d1757831e0dca0777123d4154
Author: Jens Petersen <petersen at redhat.com>
Date:   Sat Apr 14 00:23:08 2012 +0900

    set CC to clang for ARM

 ghc.spec |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/ghc.spec b/ghc.spec
index c62c3ee..5808a2b 100644
--- a/ghc.spec
+++ b/ghc.spec
@@ -229,6 +229,9 @@ EOF
 
 export CFLAGS="${CFLAGS:-%optflags}"
 # use --with-gcc=%{_bindir}/gcc when bootstrapping to avoid ccache hardcoding problem
+%ifarch armv7hl armv5tel
+export CC=clang
+%endif
 ./configure --prefix=%{_prefix} --exec-prefix=%{_exec_prefix} \
   --bindir=%{_bindir} --sbindir=%{_sbindir} --sysconfdir=%{_sysconfdir} \
   --datadir=%{_datadir} --includedir=%{_includedir} --libdir=%{_libdir} \
@@ -408,7 +411,7 @@ fi
 
 %changelog
 * Tue Apr 10 2012 Jens Petersen <petersen at redhat.com> - 7.4.1-1.1
-- BR clang not just llvm for ARM
+- build with llvm clang on ARM
 - drop --with-gcc
 - bootstrap build
 


More information about the scm-commits mailing list