Remove AC_DEFINE for DEBUG/NDEBUG

Whoops, I momentarilly forgot I had explicitly set these as CC
options so dependent packages which need to include spl_config.h
would not end up having these defined which can result in
accidentally hanging debug enabled at best, or a build failure
at worst.
This commit is contained in:
Brian Behlendorf
2010-07-01 09:40:29 -07:00
parent c950d1480d
commit c2688979a4
3 changed files with 0 additions and 28 deletions
-2
View File
@@ -244,12 +244,10 @@ AC_DEFUN([SPL_AC_DEBUG], [
AS_IF([test "x$enable_debug" = xyes],
[
AC_DEFINE([DEBUG], [1], [Define to 1 to enable debug])
KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
DEBUG_CFLAGS="-DDEBUG -Werror"
],
[
AC_DEFINE([NDEBUG], [1], [Define to 1 to enable debug])
KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
DEBUG_CFLAGS="-DNDEBUG"
])