diff options
author | unknown <monty@mysql.com> | 2005-01-26 12:55:35 +0200 |
---|---|---|
committer | unknown <monty@mysql.com> | 2005-01-26 12:55:35 +0200 |
commit | d9274b337c4c1acf36c500df590b66e2fa30fafb (patch) | |
tree | 4a1e13f2d6d5f2a7598f93aa30d43121f0fb1900 /configure.in | |
parent | ffc492cdd1bef9ac3fa24e453f4e5c117a1caf41 (diff) | |
download | mariadb-git-d9274b337c4c1acf36c500df590b66e2fa30fafb.tar.gz |
Added -DDBUG_ON to CXXFLAGS when compiling with debugging
This fixes a memory allocation bug in Innobase as structs was defined differently in .c and .cc files
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.in b/configure.in index cc845a7bb8d..3e9ea6eebe7 100644 --- a/configure.in +++ b/configure.in @@ -1681,12 +1681,12 @@ if test "$with_debug" = "yes" then # Medium debug. CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC -DDBUG_ON -DSAFE_MUTEX $CFLAGS" - CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX -DSAFE_MUTEX $CXXFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX -DDBUG_ON -DSAFE_MUTEX $CXXFLAGS" elif test "$with_debug" = "full" then # Full debug. Very slow in some cases CFLAGS="$DEBUG_CFLAGS -DDBUG_ON -DSAFE_MUTEX -DSAFEMALLOC $CFLAGS" - CXXFLAGS="$DEBUG_CXXFLAGS -DSAFE_MUTEX -DSAFEMALLOC $CXXFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS -DDBUG_ON -DSAFE_MUTEX -DSAFEMALLOC $CXXFLAGS" else # Optimized version. No debug CFLAGS="$OPTIMIZE_CFLAGS -DDBUG_OFF $CFLAGS" |