From 8796267c43dc7609c0a56a5b64784a7dc84d5e73 Mon Sep 17 00:00:00 2001 From: Giuseppe Lumia Date: Mon, 18 Jan 2021 21:26:48 +0100 Subject: [PATCH] Fix incorrectly missing -g flag On systems using dsymutil the check for the "-g" flag was failing not because the compiler didn't provide it but because of `/dev/null` being used as output file. --- config.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.sh b/config.sh index fd6a325..179515c 100644 --- a/config.sh +++ b/config.sh @@ -73,7 +73,7 @@ test_cflags() { werror="-Werror" ;; esac - if $CC $werror "$@" -o /dev/null "$outdir"/check.c >/dev/null 2>&1 + if $CC $werror "$@" -o "$outdir"/check "$outdir"/check.c >/dev/null 2>&1 then append_cflags "$@" else