CMake sufficiently appends -DNDEBUG to the preprocessor macros when not
compiling with debug symbols. This turns off debug level assertions and
has some other side effects. As such, we should equally append this
define to the configure scripts' CFLAGS.
if test $debug -eq 1; then
CFLAGS="${CFLAGS} -DZLIB_DEBUG"
SFLAGS="${SFLAGS} -DZLIB_DEBUG"
+ else
+ CFLAGS="${CFLAGS} -DNDEBUG"
+ SFLAGS="${SFLAGS} -DNDEBUG"
fi
if test -z "$uname"; then
uname=$((uname -s || echo unknown) 2>/dev/null)