logo

utils-std

Collection of commonly available Unix tools
commit: a9d2fa56a7396a1492eccd5c181229489cc4502b
parent 1b3ad2712e122b1b58bbb697c0fc02fcb585c6bd
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Thu,  1 Aug 2024 09:14:47 +0200

configure: use ${conftest}.bin instead of /dev/null

This avoids the issue of tcc replacing /dev/null in bootstrap-initrd

Diffstat:

Mconfigure5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/configure b/configure @@ -99,9 +99,10 @@ check_conftest() { printf 'Checking if conftest %s compiles ...' "$conftest" - ${CC} ${CFLAGS} -Werror=implicit-function-declaration -c -o /dev/null "${conftest}" 2>&1 - + ${CC} ${CFLAGS} -Werror=implicit-function-declaration -c -o "${conftest}.bin" "${conftest}" 2>&1 is_ok + + rm "${conftest}.bin" } set -o pipefail