From 7e85009724aaca9441d8873964e0255cba135a6e Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Mon, 19 Jan 2009 14:46:30 +0100 Subject: [PATCH] packaging(RPM): detect and use ccache if available Michael (This used to be ctdb commit c412c9e2d69a3f07e195259f6ad5767fa8160a94) --- ctdb/packaging/RPM/ctdb.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ctdb/packaging/RPM/ctdb.spec b/ctdb/packaging/RPM/ctdb.spec index b662a7dc2ef..7f16635eb22 100644 --- a/ctdb/packaging/RPM/ctdb.spec +++ b/ctdb/packaging/RPM/ctdb.spec @@ -34,7 +34,14 @@ ctdb is the clustered database used by samba %build -CC="gcc" +## check for ccache +if ccache -h >/dev/null 2>&1 ; then + CC="ccache gcc" +else + CC="gcc" +fi + +export CC ## always run autogen.sh ./autogen.sh