]> git.proxmox.com Git - mirror_qemu.git/commitdiff
configure: Don't disable optimization for non-fortify builds
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 9 Nov 2015 15:14:09 +0000 (15:14 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 9 Nov 2015 16:28:09 +0000 (16:28 +0000)
Commit b553a0428014636bc inadvertently disabled optimization
for all non-fortify builds. Fix this bug so we only do an
unoptimized build if we want debug.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1447082049-25099-1-git-send-email-peter.maydell@linaro.org

configure

index b68776435c43e1b70b47afa0618fb72f69cac48e..46fd8bdf8c7e603bcd5bab79166352567a945074 100755 (executable)
--- a/configure
+++ b/configure
@@ -4451,6 +4451,8 @@ if test "$gcov" = "yes" ; then
   LDFLAGS="-fprofile-arcs -ftest-coverage $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"
 fi
 
 ##########################################