mirror of https://github.com/xemu-project/xemu.git
configure: Prefer -Ox setting from --extra-cflags
This commit is contained in:
parent
7b84142c4e
commit
7e3add026e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue