mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-23 19:04:45 +03:00
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:
@@ -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"
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user