From: Michael Adam Date: Mon, 1 Dec 2008 22:03:38 +0000 (+0100) Subject: packaging(RHEL-CTDB): fix the build when ccache is not found. X-Git-Tag: samba-4.0.0alpha6~479^2~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ef0fc467a33e1b448853273316a72c3e7e72c47;p=thirdparty%2Fsamba.git packaging(RHEL-CTDB): fix the build when ccache is not found. Michael (cherry picked from commit c98fb34ef933944a96a286d2d276cf2adc99e25e) (cherry picked from commit 7d929d9fa363a1f1c67926678524f338e84b3535) --- diff --git a/packaging/RHEL-CTDB/samba.spec.tmpl b/packaging/RHEL-CTDB/samba.spec.tmpl index f67cab68b9f..e1eee81e45c 100644 --- a/packaging/RHEL-CTDB/samba.spec.tmpl +++ b/packaging/RHEL-CTDB/samba.spec.tmpl @@ -133,8 +133,7 @@ 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 +if ccache -h 2>&1 > /dev/null ; then CC="ccache gcc" else CC="gcc"