1
0
Fork 0
mirror of https://git.sr.ht/~sircmpwn/gmni synced 2024-04-25 01:45:01 +02:00

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.
This commit is contained in:
Giuseppe Lumia 2021-01-18 21:26:48 +01:00 committed by Drew DeVault
parent 4fbc632b22
commit 8796267c43

View File

@ -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