set CC to clang for ARM

This commit is contained in:
Jens Petersen 2012-04-14 00:23:08 +09:00
parent 5042efe9e9
commit 4bbcdfba1a
1 changed files with 4 additions and 1 deletions

View File

@ -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@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