summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2015-11-09 15:14:09 +0000
committerPeter Maydell <peter.maydell@linaro.org>2015-11-09 16:28:09 +0000
commitce278618b088afd10b91a05311eaeb6401bb5004 (patch)
tree8e541df272a60f3f011ef1854e7a64034ffe8f22
parentd17008bc2914d62fd0af6a8f313604ae9f9a102c (diff)
downloadhqemu-ce278618b088afd10b91a05311eaeb6401bb5004.zip
hqemu-ce278618b088afd10b91a05311eaeb6401bb5004.tar.gz
configure: Don't disable optimization for non-fortify builds
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
-rwxr-xr-xconfigure2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure b/configure
index b687764..46fd8bd 100755
--- 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
##########################################
OpenPOWER on IntegriCloud