Mesa (master): configure.ac: Disable compiler optimizations when --enable-debug is set
Chad Versace
chadversary at kemper.freedesktop.org
Wed Dec 12 20:50:24 UTC 2012
Module: Mesa
Branch: master
Commit: 122345876479cf5cf553e38162ab105658614ab7
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=122345876479cf5cf553e38162ab105658614ab7
Author: Emil Velikov <emil.l.velikov at gmail.com>
Date: Wed Dec 12 14:59:36 2012 +0000
configure.ac: Disable compiler optimizations when --enable-debug is set
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
Reviewed-by: Dan Nicholson <dbn.lists at gmail.com>
Reviewed-by: Chad Versace <chad.versace at linux.intel.com>
---
configure.ac | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/configure.ac b/configure.ac
index a133902..1294740 100644
--- a/configure.ac
+++ b/configure.ac
@@ -341,18 +341,18 @@ AC_ARG_ENABLE([debug],
if test "x$enable_debug" = xyes; then
DEFINES_FOR_BUILD="$DEFINES_FOR_BUILD -DDEBUG"
if test "x$GCC_FOR_BUILD" = xyes; then
- CFLAGS_FOR_BUILD="$CFLAGS_FOR_BUILD -g"
+ CFLAGS_FOR_BUILD="$CFLAGS_FOR_BUILD -g -O0"
fi
if test "x$GXX_FOR_BUILD" = xyes; then
- CXXFLAGS_FOR_BUILD="$CXXFLAGS_FOR_BUILD -g"
+ CXXFLAGS_FOR_BUILD="$CXXFLAGS_FOR_BUILD -g -O0"
fi
DEFINES="$DEFINES -DDEBUG"
if test "x$GCC" = xyes; then
- CFLAGS="$CFLAGS -g"
+ CFLAGS="$CFLAGS -g -O0"
fi
if test "x$GXX" = xyes; then
- CXXFLAGS="$CXXFLAGS -g"
+ CXXFLAGS="$CXXFLAGS -g -O0"
fi
fi
More information about the mesa-commit
mailing list