summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2012-06-20 11:34:44 +0200
committerFridrich Štrba <fridrich.strba@bluewin.ch>2012-06-22 08:50:59 +0200
commit4c01c0510e9be29c7d81bb72fb7c2eb20f191571 (patch)
tree2364874c9e531a65a9c9c7d1dce060beee9a5c9f
parent8ee6d82da3fbf5676c9bbcddaa6e3e5538900b35 (diff)
Disable optimization in debug buildlibvisio-0.0.18
-rw-r--r--configure.ac2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index a199eb1..699954a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -157,6 +157,8 @@ AC_ARG_ENABLE([debug],
)
AS_IF([test "x$enable_debug" = "xyes"], [
DEBUG_CXXFLAGS="-DDEBUG -g"
+ CXXFLAGS="$CXXFLAGS -O0"
+ CFLAGS="$CFLAGS -O0"
], [
DEBUG_CXXFLAGS="-DNDEBUG"
])