From bb3181775b3ff52418847972bbab2fe2297b3229 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 30 Apr 2026 17:59:15 +0000 Subject: [PATCH] Reset stale configure state for Linux builds --- contrib/build-linux.sh | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/contrib/build-linux.sh b/contrib/build-linux.sh index 53b6e6b3..f9d1fcb5 100755 --- a/contrib/build-linux.sh +++ b/contrib/build-linux.sh @@ -15,6 +15,17 @@ require_path() { fi } +reset_configure_state() { + rm -f config.cache config.log config.status + + # Stale generated makefiles can trigger config.status --recheck with old + # configure arguments after a failed build attempt. + find . -name Makefile -type f \ + ! -path './depends/*' \ + ! -path './.git/*' \ + -delete +} + cd "$ROOT" case "$MODE" in @@ -23,9 +34,8 @@ case "$MODE" in make -C depends HOST="$HOST" NO_QT=1 -j"$JOBS" require_path "$BASE_CONFIG" - if [[ ! -f configure ]]; then - ./autogen.sh - fi + ./autogen.sh + reset_configure_state echo "Configuring Linux daemon build..." CONFIG_SITE="$BASE_CONFIG" ./configure \