configure: Prefer -Ox setting from --extra-cflags

This commit is contained in:
Matt Borgerson 2021-02-18 01:09:47 -07:00 committed by mborgerson
parent 7b84142c4e
commit 7e3add026e
1 changed files with 6 additions and 3 deletions

9
configure vendored
View File

@ -6610,9 +6610,12 @@ if test "$gcov" = "yes" ; then
QEMU_CFLAGS="-fprofile-arcs -ftest-coverage -g $QEMU_CFLAGS"
QEMU_LDFLAGS="-fprofile-arcs -ftest-coverage $QEMU_LDFLAGS"
elif test "$fortify_source" = "yes" ; then
CFLAGS="-O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 $CFLAGS"
elif test "$debug" = "no"; then
CFLAGS="-O2 $CFLAGS"
CFLAGS="-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 $CFLAGS"
# Note: xemu build.sh script will pass in appropriate optimization level
# CFLAGS="-O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 $CFLAGS"
# elif test "$debug" = "no"; then
# CFLAGS="-O2 $CFLAGS"
fi
if test "$have_asan" = "yes"; then