Fix ccache support
This commit is contained in:
parent
dc949bd3c8
commit
a79fd33b58
@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# To build and run the tests use:
|
# To build and run the tests use:
|
||||||
#
|
#
|
||||||
# fedpkg local --with testsuite
|
# fedpkg mockbuild --with testsuite
|
||||||
# or
|
# or
|
||||||
# rpmbuild --rebuild --with testsuite samba.src.rpm
|
# rpmbuild --rebuild --with testsuite samba.src.rpm
|
||||||
#
|
#
|
||||||
@ -10,12 +10,15 @@
|
|||||||
|
|
||||||
# Build with internal talloc, tevent, tdb and ldb.
|
# Build with internal talloc, tevent, tdb and ldb.
|
||||||
#
|
#
|
||||||
# fedpkg local --with=testsuite --with=includelibs
|
# fedpkg mockbuild --with=testsuite --with=includelibs
|
||||||
# or
|
# or
|
||||||
# rpmbuild --rebuild --with=testsuite --with=includelibs samba.src.rpm
|
# rpmbuild --rebuild --with=testsuite --with=includelibs samba.src.rpm
|
||||||
#
|
#
|
||||||
%bcond_with includelibs
|
%bcond_with includelibs
|
||||||
|
|
||||||
|
# fedpkg mockbuild --with=ccache
|
||||||
|
%bcond_with ccache
|
||||||
|
|
||||||
# ctdb is enabled by default, you can disable it with: --without clustering
|
# ctdb is enabled by default, you can disable it with: --without clustering
|
||||||
%bcond_without clustering
|
%bcond_without clustering
|
||||||
|
|
||||||
@ -1263,11 +1266,13 @@ export python_LDFLAGS="$(echo %{__global_ldflags} | sed -e 's/-Wl,-z,defs//g')"
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Add support for mock ccache plugin
|
# Add support for mock ccache plugin
|
||||||
|
%if %{with ccache}
|
||||||
CCACHE="$(command -v ccache)"
|
CCACHE="$(command -v ccache)"
|
||||||
if [ -n "${CCACHE}" ]; then
|
if [ -n "${CCACHE}" ]; then
|
||||||
${CCACHE} -s
|
${CCACHE} -s
|
||||||
export CC="${CCACHE} gcc"
|
export CC="${CCACHE} gcc"
|
||||||
fi
|
fi
|
||||||
|
%endif
|
||||||
|
|
||||||
%configure \
|
%configure \
|
||||||
--enable-fhs \
|
--enable-fhs \
|
||||||
|
Loading…
Reference in New Issue
Block a user