summaryrefslogtreecommitdiffstats
path: root/packaging/RHEL/samba.spec.tmpl
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-09-08 17:38:55 +0200
committerMichael Adam <obnox@samba.org>2008-09-09 10:53:27 +0200
commit8b2ae3ec2b455342af11cddfc7d33161338c7f63 (patch)
treec56010957601da0b2fcc1f8e99ddc6f8ec419bd5 /packaging/RHEL/samba.spec.tmpl
parentc7a8ab2ad452cd44a5d283a216242a23ff26e357 (diff)
downloadsamba-8b2ae3ec2b455342af11cddfc7d33161338c7f63.tar.gz
samba-8b2ae3ec2b455342af11cddfc7d33161338c7f63.tar.xz
samba-8b2ae3ec2b455342af11cddfc7d33161338c7f63.zip
packaging(RHEL): use ccache if available
Michael (This used to be commit e8abbfabde3da0844ffb4e2507084c139a70d503)
Diffstat (limited to 'packaging/RHEL/samba.spec.tmpl')
-rw-r--r--packaging/RHEL/samba.spec.tmpl12
1 files changed, 6 insertions, 6 deletions
diff --git a/packaging/RHEL/samba.spec.tmpl b/packaging/RHEL/samba.spec.tmpl
index a9c5b6cc055..20567bb98b5 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 \