commit: be4dbaa6eff0c604f2f4c8054c326a0a986c9f5b
parent 9fa6bfdee258a5986574299408159cb3177a836a
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Wed, 18 Dec 2024 10:27:13 +0100
configure: cleanup configure.d/*.bin separately
Risks messing with check functions return value otherwise.
Diffstat:
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/configure b/configure
@@ -102,8 +102,6 @@ check_conftest() {
${CC} ${CFLAGS} ${CFLAGS_CHECK} -c -o "${conftest}.bin" "${conftest}" 2>&1
is_ok
-
- rm "${conftest}.bin"
}
check_cflag() {
@@ -111,8 +109,6 @@ check_cflag() {
${CC} ${CFLAGS} ${CFLAGS_CHECK} "$@" -c -o "configure.d/cflag_test.bin" "configure.d/cflag_test.c" 2>&1
is_ok
-
- rm "configure.d/cflag_test.bin"
}
set -o pipefail
@@ -242,6 +238,8 @@ check_conftest configure.d/getopt_long.c && CFLAGS="${CFLAGS} -DHAS_GETOPT_LONG"
check_conftest configure.d/syncfs.c && CFLAGS="${CFLAGS} -DHAS_SYNCFS"
+rm -f configure.d/*.bin
+
# As seen missing in Haiku beta5 <https://dev.haiku-os.org/ticket/16257>
check_header wordexp.h && CFLAGS="${CFLAGS} -DHAS_WORDEXP"