From 6495831ed06d2ba92276e6d05b1621139623507d Mon Sep 17 00:00:00 2001 From: Amar Takhar Date: Sat, 14 Feb 2009 19:05:40 +0000 Subject: [PATCH] Really disable -O2 when --enable-debug is used. Originally committed to SVN as r2731. --- configure.in | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/configure.in b/configure.in index 308424ad5..b2636878b 100644 --- a/configure.in +++ b/configure.in @@ -226,11 +226,12 @@ if test "$enable_compiler_flags" != "no"; then AC_CXX_FLAG([-fpermissive]) AC_CXX_FLAG([-fno-strict-aliasing]) AC_CXX_FLAG([-std=c++98]) -fi -if test "$enable_compiler_flags" != "no" || test "$enable_debug" != "yes"; then - AC_C_FLAG([-O2]) - AC_CXX_FLAG([-O2]) + # -O* messes with debugging. + if test "$enable_debug" != "yes"; then + AC_C_FLAG([-O2]) + AC_CXX_FLAG([-O2]) + fi fi ######################################