1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-22 05:48:01 +01:00

configure: Do not keep assertion if debug was not enabled

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
Christophe CURIS
2013-11-08 23:08:20 +01:00
committed by Carlos R. Mafra
parent 4cf72c990d
commit 349bc2dda2

View File

@@ -95,6 +95,10 @@ AS_IF([test "x$debug" = "xyes"],
dnl dnl
dnl Enable internal debug code dnl Enable internal debug code
CPPFLAGS="$CPPFLAGS -DDEBUG" CPPFLAGS="$CPPFLAGS -DDEBUG"
], [dnl
dnl When debug is not enabled, the user probably does not wants to keep
dnl assertions in the final program
CPPFLAGS="$CPPFLAGS -DNDEBUG"
]) ])