build: add cache to ./configure with -C flag

Add the -C flag to ./configure to enable caching, reducing redundant
resource fetching during builds when packages and the machine remain
unchanged. Caching may cause issues only if applied across different machines
or if packages are modified, neither of which is the case during the build.
This commit is contained in:
2025-09-02 15:10:03 +02:00
committed by jabber.developer
parent 0b0b02d6e0
commit 886372caac
4 changed files with 7 additions and 4 deletions

View File

@@ -5,6 +5,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
autoconf \ autoconf \
autoconf-archive \ autoconf-archive \
automake \ automake \
ca-certificates \
expect \ expect \
gcc \ gcc \
git \ git \

View File

@@ -9,6 +9,7 @@ RUN dnf install -y \
autoconf-archive \ autoconf-archive \
automake \ automake \
awk \ awk \
ca-certificates \
expect-devel \ expect-devel \
gcc \ gcc \
git \ git \

View File

@@ -6,6 +6,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
autoconf \ autoconf \
autoconf-archive \ autoconf-archive \
automake \ automake \
ca-certificates \
expect \ expect \
gcc \ gcc \
git \ git \

View File

@@ -121,11 +121,11 @@ esac
case "$ARCH" in case "$ARCH" in
linux*) linux*)
echo echo
echo "--> Building with ./configure ${tests[0]} --enable-valgrind $*" echo "--> Building with ./configure -C ${tests[0]} --enable-valgrind $*"
echo echo
# shellcheck disable=SC2086 # shellcheck disable=SC2086
./configure ${tests[0]} --enable-valgrind $* ./configure -C ${tests[0]} --enable-valgrind $*
$MAKE CC="${CC}" $MAKE CC="${CC}"
if grep '^ID=' /etc/os-release | grep -q -e debian; then if grep '^ID=' /etc/os-release | grep -q -e debian; then
@@ -140,11 +140,11 @@ esac
for features in "${tests[@]}" for features in "${tests[@]}"
do do
echo echo
echo "--> Building with ./configure ${features} $*" echo "--> Building with ./configure -C ${features} $*"
echo echo
# shellcheck disable=SC2086 # shellcheck disable=SC2086
./configure $features $* ./configure -C $features $*
$MAKE CC="${CC}" $MAKE CC="${CC}"
$MAKE check $MAKE check