From 05c9766cef9d0bba1b7ab496f06e976a6bcc2dae Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Mon, 1 Dec 2008 03:07:19 +0100 Subject: packaging(RHEL-CTDB): use ccache if available Michael (cherry picked from commit 36ca917a63f23126536e786bed845dee48fbf61c) (cherry picked from commit 05b51bc176f87e7dc1b65adf3d866e797159d953) --- packaging/RHEL-CTDB/samba.spec.tmpl | 10 +++++----- 1 file 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 -- cgit