packaging(RHEL-CTDB): fix the build when ccache is not found.
authorMichael Adam <obnox@samba.org>
Mon, 1 Dec 2008 22:03:38 +0000 (23:03 +0100)
committerMichael Adam <obnox@samba.org>
Thu, 11 Dec 2008 16:53:46 +0000 (17:53 +0100)
Michael
(cherry picked from commit c98fb34ef933944a96a286d2d276cf2adc99e25e)
(cherry picked from commit 7d929d9fa363a1f1c67926678524f338e84b3535)

packaging/RHEL-CTDB/samba.spec.tmpl

index f67cab68b9f30e27338cefd7ea28b36aecc43568..e1eee81e45c8a28d128a42a893c4a9decb599892 100644 (file)
@@ -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"