diff options
author | Michael Adam <obnox@samba.org> | 2008-09-08 17:38:55 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-09-09 10:53:27 +0200 |
commit | 8b2ae3ec2b455342af11cddfc7d33161338c7f63 (patch) | |
tree | c56010957601da0b2fcc1f8e99ddc6f8ec419bd5 /packaging/RHEL | |
parent | c7a8ab2ad452cd44a5d283a216242a23ff26e357 (diff) | |
download | samba-8b2ae3ec2b455342af11cddfc7d33161338c7f63.tar.gz samba-8b2ae3ec2b455342af11cddfc7d33161338c7f63.tar.bz2 samba-8b2ae3ec2b455342af11cddfc7d33161338c7f63.zip |
packaging(RHEL): use ccache if available
Michael
(This used to be commit e8abbfabde3da0844ffb4e2507084c139a70d503)
Diffstat (limited to 'packaging/RHEL')
-rw-r--r-- | packaging/RHEL/samba.spec.tmpl | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/packaging/RHEL/samba.spec.tmpl b/packaging/RHEL/samba.spec.tmpl index a9c5b6cc05..20567bb98b 100644 --- a/packaging/RHEL/samba.spec.tmpl +++ b/packaging/RHEL/samba.spec.tmpl @@ -122,17 +122,17 @@ cd source # RPM_OPT_FLAGS="$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64" ## check for ccache -# ccache -h 2>&1 > /dev/null -#if [ $? -eq 0 ]; then -# CC="ccache gcc" -#else + ccache -h 2>&1 > /dev/null +if [ $? -eq 0 ]; then + CC="ccache gcc" +else CC="gcc" -#fi +fi ## always run autogen.sh ./autogen.sh -CFLAGS="$RPM_OPT_FLAGS $EXTRA -D_GNU_SOURCE" ./configure \ +CC="$CC" CFLAGS="$RPM_OPT_FLAGS $EXTRA -D_GNU_SOURCE" ./configure \ --prefix=%{_prefix} \ --localstatedir=/var \ --with-configdir=%{_sysconfdir}/samba \ |