Update of /cvsroot/libfunutil/libfunutil/toc/tests
In directory sc8-pr-cvs1:/tmp/cvs-serv24814/toc/tests
Modified Files:
gnu_cpp_tools.sh
Log Message:
Now sets NDEBUG if --enable-debug.
Index: gnu_cpp_tools.sh
===================================================================
RCS file: /cvsroot/libfunutil/libfunutil/toc/tests/gnu_cpp_tools.sh,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- gnu_cpp_tools.sh 31 Aug 2003 21:38:01 -0000 1.9
+++ gnu_cpp_tools.sh 5 Sep 2003 09:34:00 -0000 1.10
@@ -4,6 +4,7 @@
# --enable-debug causes stuff to be built -g instead of -02. This is a
# little weird, but you can control the optimization level
# with --enable-debug="-O3 -fno-inline" etc.
+# --enable-debug (without arguments) also sets -DNDEBUG=1.
# --enable-warn causes stuff to be built -Wall. To turn on -Werror, go
# --enable-warn="-Wall -Werror" etc.
# --enable-werror same as --enable-warn="-Wall -Werror"
@@ -13,7 +14,7 @@
# - INCLUDES probably empty
# - CPPFLAGS probably empty
# - OPT -g or -O2 (or some other value specified by --enable-debug)
-# - WARN -Wall (or some other value specified by --enable-warn)
+# - WARN -Wall (or some other value specified by --enable-warn or --enable-werror)
# - CFLAGS probably empty (or maybe -pipe)
# - CXXFLAGS probably empty (or maybe -pipe)
# - LDFLAGS probably empty
@@ -35,9 +36,8 @@
toc_add_make INCLUDES="$INCLUDES"
toc_add_make CPPFLAGS="$CPPFLAGS"
-
if test "$configure_enable_debug" = 1; then
- OPT="-g $OPT"
+ OPT="-g $OPT -DNDEBUG=1"
elif test "${configure_enable_debug:-0}" = 0; then
# What's a sensible default here? -O2? Put it first in the hopes
# that any values already in $OPT will take precedence.
|