summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-12-01 23:03:38 +0100
committerKarolin Seeger <kseeger@samba.org>2008-12-12 14:48:14 +0100
commit6b9cc1b45ab7769a99b36725eccff8e7b1ea6853 (patch)
treea74b227b21ef79f2c5f5cb1c749fc46ae62fa321 /packaging
parentf818ce5fc91d8ff29817c8a25f176cb6f3ea7dac (diff)
downloadsamba-6b9cc1b45ab7769a99b36725eccff8e7b1ea6853.tar.gz
packaging(RHEL-CTDB): fix the build when ccache is not found.
Michael (cherry picked from commit c98fb34ef933944a96a286d2d276cf2adc99e25e) (cherry picked from commit 7d929d9fa363a1f1c67926678524f338e84b3535)
Diffstat (limited to 'packaging')
-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 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"