From 1e40021b9122b29d2820929655cf4ece4aa9ef9d Mon Sep 17 00:00:00 2001 From: auria Date: Mon, 5 May 2008 01:30:15 +0000 Subject: [PATCH] Ignore asserts in release mode (will require regenerating build files and doing a clean build) git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1813 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index 20f75b92a..768bc8315 100644 --- a/configure.ac +++ b/configure.ac @@ -61,6 +61,10 @@ if test x$enable_debug = xyes; then CFLAGS="$CFLAGS -g -pg" CXXFLAGS="$CXXFLAGS -g -pg" SUMMARY="$SUMMARY\nEnabled debugging, please disable for a release!!" +else + CFLAGS="$CFLAGS -DNDEBUG" + CXXFLAGS="$CXXFLAGS -DNDEBUG" + SUMMARY="$SUMMARY\nDisabled debugging, asserts have been turned off" fi AC_ARG_ENABLE(optimization, [ --disable-optimization Disable compiler optimizations],,