mirror of
https://git.sr.ht/~sircmpwn/gmni
synced 2024-05-04 10:56:03 +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:
parent
4fbc632b22
commit
8796267c43
|
@ -73,7 +73,7 @@ test_cflags() {
|
||||||
werror="-Werror"
|
werror="-Werror"
|
||||||
;;
|
;;
|
||||||
esac
|
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
|
then
|
||||||
append_cflags "$@"
|
append_cflags "$@"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue