Add NDEBUG to CPPFLAGS if --enable-debug is unset.
This commit is contained in:
parent
e23c64bc84
commit
1f16a22791
2
configure
vendored
2
configure
vendored
@ -200,6 +200,8 @@ if [ -n "$DEBUG" -a "$DEBUG" != no -a "$DEBUG" != false ]; then
|
||||
echo "Building with debugging symbols."
|
||||
echo "CPPFLAGS += -DDEBUG" >>$CONFIG_MK
|
||||
echo "CFLAGS += -g" >>$CONFIG_MK
|
||||
else
|
||||
echo "CPPFLAGS+= -DNDEBUG" >>$CONFIG_MK
|
||||
fi
|
||||
|
||||
case "$OS" in
|
||||
|
@ -27,10 +27,6 @@
|
||||
#ifndef _XBPS_API_IMPL_H_
|
||||
#define _XBPS_API_IMPL_H_
|
||||
|
||||
#ifndef DEBUG
|
||||
#define NDEBUG
|
||||
#endif
|
||||
|
||||
#include <assert.h>
|
||||
#include <confuse.h>
|
||||
#define LIBXBPS_PRIVATE
|
||||
|
Loading…
Reference in New Issue
Block a user