summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-12-01 23:03:38 +0100
committerMichael Adam <obnox@samba.org>2008-12-11 17:53:46 +0100
commit2ef0fc467a33e1b448853273316a72c3e7e72c47 (patch)
treed43be903214a607fb571f19d79ad8407150e4191
parent05c9766cef9d0bba1b7ab496f06e976a6bcc2dae (diff)
downloadsamba-2ef0fc467a33e1b448853273316a72c3e7e72c47.tar.gz
samba-2ef0fc467a33e1b448853273316a72c3e7e72c47.tar.bz2
samba-2ef0fc467a33e1b448853273316a72c3e7e72c47.zip
packaging(RHEL-CTDB): fix the build when ccache is not found.
Michael (cherry picked from commit c98fb34ef933944a96a286d2d276cf2adc99e25e) (cherry picked from commit 7d929d9fa363a1f1c67926678524f338e84b3535)
-rw-r--r--packaging/RHEL-CTDB/samba.spec.tmpl3
1 files changed, 1 insertions, 2 deletions
diff --git a/packaging/RHEL-CTDB/samba.spec.tmpl b/packaging/RHEL-CTDB/samba.spec.tmpl
index f67cab68b9..e1eee81e45 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"