diff options
author | Michael Adam <obnox@samba.org> | 2008-12-01 03:07:19 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-12-11 17:53:46 +0100 |
commit | 05c9766cef9d0bba1b7ab496f06e976a6bcc2dae (patch) | |
tree | a6d66b6a2f0f48fb800f4ac196cb11b388ebfb1f /packaging/RHEL-CTDB/samba.spec.tmpl | |
parent | 9e4a95c928d023a3b253bbf7d9056aa91d5c278a (diff) | |
download | samba-05c9766cef9d0bba1b7ab496f06e976a6bcc2dae.tar.gz |
packaging(RHEL-CTDB): use ccache if available
Michael
(cherry picked from commit 36ca917a63f23126536e786bed845dee48fbf61c)
(cherry picked from commit 05b51bc176f87e7dc1b65adf3d866e797159d953)
Diffstat (limited to 'packaging/RHEL-CTDB/samba.spec.tmpl')
-rw-r--r-- | packaging/RHEL-CTDB/samba.spec.tmpl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/packaging/RHEL-CTDB/samba.spec.tmpl b/packaging/RHEL-CTDB/samba.spec.tmpl index efcd2ed580d..f67cab68b9f 100644 --- a/packaging/RHEL-CTDB/samba.spec.tmpl +++ b/packaging/RHEL-CTDB/samba.spec.tmpl @@ -133,12 +133,12 @@ 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 -# CC="ccache gcc" -#else +ccache -h 2>&1 > /dev/null +if [ $? -eq 0 ]; then + CC="ccache gcc" +else CC="gcc" -#fi +fi ## always run autogen.sh ./autogen.sh |