change CFLAGS to compile on Linux

This commit is contained in:
ndrew222
2026-01-26 11:45:10 +08:00
parent 4eb2e8ae8c
commit 3554e0192e

4
configure vendored
View File

@@ -2692,13 +2692,13 @@ if test "$ac_test_CFLAGS" = set; then
CFLAGS=$ac_save_CFLAGS
elif test $ac_cv_prog_cc_g = yes; then
if test "$GCC" = yes; then
CFLAGS="-g -O2"
CFLAGS="-g -O2 -std=gnu89"
else
CFLAGS="-g"
fi
else
if test "$GCC" = yes; then
CFLAGS="-O2"
CFLAGS="-O2 -std=gnu89"
else
CFLAGS=
fi