summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-12-01 03:07:19 +0100
committerMichael Adam <obnox@samba.org>2008-12-11 17:53:46 +0100
commit05c9766cef9d0bba1b7ab496f06e976a6bcc2dae (patch)
treea6d66b6a2f0f48fb800f4ac196cb11b388ebfb1f
parent9e4a95c928d023a3b253bbf7d9056aa91d5c278a (diff)
downloadsamba-05c9766cef9d0bba1b7ab496f06e976a6bcc2dae.tar.gz
samba-05c9766cef9d0bba1b7ab496f06e976a6bcc2dae.tar.bz2
samba-05c9766cef9d0bba1b7ab496f06e976a6bcc2dae.zip
packaging(RHEL-CTDB): use ccache if available
Michael (cherry picked from commit 36ca917a63f23126536e786bed845dee48fbf61c) (cherry picked from commit 05b51bc176f87e7dc1b65adf3d866e797159d953)
-rw-r--r--packaging/RHEL-CTDB/samba.spec.tmpl10
1 files changed, 5 insertions, 5 deletions
diff --git a/packaging/RHEL-CTDB/samba.spec.tmpl b/packaging/RHEL-CTDB/samba.spec.tmpl
index efcd2ed580..f67cab68b9 100644
--- a/packaging/RHEL-CTDB/samba.spec.tmpl
+++ b/packaging/RHEL-CTDB/samba.spec.tmpl
@@ -133,12 +133,12 @@ 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