diff options
author | Michael Adam <obnox@samba.org> | 2008-09-08 17:38:55 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2008-09-10 12:12:37 +0200 |
commit | 90a50d9c2a442c492682050e00d6619a4717f6f8 (patch) | |
tree | 72571bfc569ba0f1920d292f0d88d9623da3ff91 /packaging/RHEL | |
parent | 5e1994c92ef4f6a068c8465d176de20d3c10e0e6 (diff) | |
download | samba-90a50d9c2a442c492682050e00d6619a4717f6f8.tar.gz samba-90a50d9c2a442c492682050e00d6619a4717f6f8.tar.xz samba-90a50d9c2a442c492682050e00d6619a4717f6f8.zip |
packaging(RHEL): use ccache if available
Michael
(cherry picked from commit e8abbfabde3da0844ffb4e2507084c139a70d503)
(cherry picked from commit 998b699f27630d3ea6d781da4f09c1cfd3e24511)
Diffstat (limited to 'packaging/RHEL')
-rw-r--r-- | packaging/RHEL/samba.spec.tmpl | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/packaging/RHEL/samba.spec.tmpl b/packaging/RHEL/samba.spec.tmpl index af05cbf91da..0257be96e81 100644 --- a/packaging/RHEL/samba.spec.tmpl +++ b/packaging/RHEL/samba.spec.tmpl @@ -113,17 +113,17 @@ 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 -CFLAGS="$RPM_OPT_FLAGS $EXTRA -D_GNU_SOURCE" ./configure \ +CC="$CC" CFLAGS="$RPM_OPT_FLAGS $EXTRA -D_GNU_SOURCE" ./configure \ --prefix=%{_prefix} \ --localstatedir=/var \ --with-configdir=%{_sysconfdir}/samba \ |