diff options
author | Karolin Seeger <kseeger@samba.org> | 2009-05-13 10:07:56 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2009-05-13 10:07:56 +0200 |
commit | 42e0cb8c0a1b8470ac8e9ad1c5a741e299debb8f (patch) | |
tree | a1c65ad67de7cb2f791ff67d1e1b8048ad00db35 /packaging/RHEL | |
parent | 7c39e450fc4216e1138e4f30d2c1e2b6ba3854a8 (diff) | |
download | samba-42e0cb8c0a1b8470ac8e9ad1c5a741e299debb8f.tar.gz samba-42e0cb8c0a1b8470ac8e9ad1c5a741e299debb8f.tar.bz2 samba-42e0cb8c0a1b8470ac8e9ad1c5a741e299debb8f.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
Diffstat (limited to 'packaging/RHEL')
-rw-r--r-- | packaging/RHEL/samba.spec.tmpl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/packaging/RHEL/samba.spec.tmpl b/packaging/RHEL/samba.spec.tmpl index d3724d9180..7818296fa6 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" |