Add support for mock ccache plugin

This commit is contained in:
Andreas Schneider 2023-03-28 09:55:56 +02:00
parent a6fcf14600
commit 5caa412c6b
1 changed files with 7 additions and 0 deletions

View File

@ -1262,6 +1262,13 @@ export python_LDFLAGS="$(echo ${LDFLAGS} | sed -e 's/-Wl,-z,defs//g')"
export python_LDFLAGS="$(echo %{__global_ldflags} | sed -e 's/-Wl,-z,defs//g')"
%endif
# Add support for mock ccache plugin
CCACHE="$(command -v ccache)"
if [ -n "${CCACHE}" ]; then
${CCACHE} -s
export CC="${CCACHE} gcc"
fi
%configure \
--enable-fhs \
--with-piddir=/run \