From 113ae0cd6dd1acf0580b76dcfc8b492ef2d33a13 Mon Sep 17 00:00:00 2001 From: Amar Takhar Date: Thu, 21 Jan 2010 00:30:42 +0000 Subject: [PATCH] merge r4007 (optimisation flag fix.) Originally committed to SVN as r4023. --- aegisub/configure.in | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/aegisub/configure.in b/aegisub/configure.in index f9c0d1c57..1fcd6a6a6 100644 --- a/aegisub/configure.in +++ b/aegisub/configure.in @@ -277,10 +277,14 @@ if test "$enable_compiler_flags" != "no"; then AC_CXX_FLAG([-pipe]) # -O* messes with debugging. - if test "$enable_debug" != "yes"; then - AC_C_FLAG([-O2]) - AC_CXX_FLAG([-O2]) + if test "$enable_debug" = "yes"; then + opt_flag="-O0" + else + opt_flag="-O2" fi + + AC_C_FLAG([$opt_flag]) + AC_CXX_FLAG([$opt_flag]) fi