git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c39e45
)
s3/packaging: Fix build on RHEL when ccache is not available.
author
Karolin Seeger
<kseeger@samba.org>
Wed, 13 May 2009 08:07:56 +0000
(10:07 +0200)
committer
Karolin Seeger
<kseeger@samba.org>
Wed, 13 May 2009 08:07:56 +0000
(10:07 +0200)
This fixes bug #5832.
Patch was provided by D.L. Meyer <dlmeyer [at] uiuc.edu>.
Thanks for reporting and providing the patch!
Karolin
packaging/RHEL/samba.spec.tmpl
patch
|
blob
|
history
diff --git
a/packaging/RHEL/samba.spec.tmpl
b/packaging/RHEL/samba.spec.tmpl
index d3724d918029a3ef76aed0f8139d203f63d0b841..7818296fa6f1136de903bd76d741f9bf1296e74a 100644
(file)
--- 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"