X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=m4%2Fopenbox.m4;h=db592e91e6b472eb701fb3f6f4d30992d8c2f862;hb=b93b8cec4ebad929cc02a472ed4850ac00dda72b;hp=7c19ab4b1bfb0333eb3101a4fbc4e64238092c00;hpb=6a947144cc0eb8325c248a5c682876c6c0da652d;p=chaz%2Fopenbox diff --git a/m4/openbox.m4 b/m4/openbox.m4 index 7c19ab4b..db592e91 100644 --- a/m4/openbox.m4 +++ b/m4/openbox.m4 @@ -61,12 +61,18 @@ AC_DEFUN([OB_COMPILER_FLAGS], FLAGS="" + if test "$DEBUG" = "yes"; then + FLAGS="-DDEBUG" + else + FLAGS="-DNDEBUG -DG_DISABLE_ASSERT" + fi + # Check what compiler we are using AC_MSG_CHECKING([for GNU CC]) if test "$GCC" = "yes"; then AC_MSG_RESULT([yes]) if test "$DEBUG" = "yes"; then - FLAGS="-g -fno-inline" + FLAGS="$FLAGS -g -fno-inline" FLAGS="$FLAGS -Wall -Wsign-compare -Waggregate-return" FLAGS="$FLAGS -Wcast-qual -Wbad-function-cast -Wpointer-arith" # for Python.h