From 30bb821bad107a676c1d0f0688f90b2b7e6c7505 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Wed, 8 Aug 2012 22:06:25 +0300 Subject: Remove asserts for production build. --- ChangeLog | 4 ++++ configure | 1 + configure.ac | 1 + 3 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 3c8a72f3..1c686d0c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2012-08-08 Arnold D. Robbins + + * configure.ac: Add -DNDEBUG to remove asserts if not developing. + 2012-08-01 Arnold D. Robbins * io.c (iop_finish): New function. diff --git a/configure b/configure index c45d0cd0..56409961 100755 --- a/configure +++ b/configure @@ -5553,6 +5553,7 @@ $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } + CFLAGS="$CFLAGS -DNDEBUG" # turn off assertions fi diff --git a/configure.ac b/configure.ac index f3cf6777..bb81f800 100644 --- a/configure.ac +++ b/configure.ac @@ -95,6 +95,7 @@ then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) + CFLAGS="$CFLAGS -DNDEBUG" # turn off assertions fi AC_SUBST(CFLAGS) -- cgit v1.2.3