summaryrefslogtreecommitdiffstats
path: root/packaging
diff options
context:
space:
mode:
authorKarolin Seeger <kseeger@samba.org>2009-05-13 10:07:56 +0200
committerKarolin Seeger <kseeger@samba.org>2009-05-13 10:17:30 +0200
commit07d40da10ac9aab58cb7684dc39f6c1ffeb2d020 (patch)
tree30b971510d26e10eef245afae5771b3c874cdb9d /packaging
parentd3f39da433c22632007a9300d4dab4cda0dfd43e (diff)
downloadsamba-07d40da10ac9aab58cb7684dc39f6c1ffeb2d020.tar.gz
samba-07d40da10ac9aab58cb7684dc39f6c1ffeb2d020.tar.xz
samba-07d40da10ac9aab58cb7684dc39f6c1ffeb2d020.zip
s3/packaging: Fix build on RHEL when ccache is not available.
This fixes bug #5832. Patch was provided by D.L. Meyer <dlmeyer [at] uiuc.edu>. Thanks for reporting and providing the patch! Karolin (cherry picked from commit 42e0cb8c0a1b8470ac8e9ad1c5a741e299debb8f) (cherry picked from commit b2205a7697598729f85cb767621b8c610654053c)
Diffstat (limited to 'packaging')
-rw-r--r--packaging/RHEL/samba.spec.tmpl3
1 files changed, 1 insertions, 2 deletions
diff --git a/packaging/RHEL/samba.spec.tmpl b/packaging/RHEL/samba.spec.tmpl
index f7c980f1abe..2bcb8dce706 100644
--- a/packaging/RHEL/samba.spec.tmpl
+++ b/packaging/RHEL/samba.spec.tmpl
@@ -122,8 +122,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 [ "$(which ccache 2> /dev/null)" != "" ]; then
CC="ccache gcc"
else
CC="gcc"