]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Set TALLOC_GET_TYPE_ABORT_NOOP on non-debug builds
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 17 Apr 2017 22:03:26 +0000 (18:03 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 17 Apr 2017 22:03:26 +0000 (18:03 -0400)
Discuss where this should be…

configure
configure.ac

index 5bd586dd63d88e0d0cd02cfcf21b1ec07a368e79..4db6f4a4a1b5ca130b45b5f1d5ea0f7210a12c0a 100755 (executable)
--- a/configure
+++ b/configure
@@ -12499,6 +12499,7 @@ $as_echo "yes" >&6; }
 
 $as_echo "#define WITH_NDEBUG 1" >>confdefs.h
 
+  CFLAGS="$CFLAGS -DTALLOC_GET_TYPE_ABORT_NOOP"
 else
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 $as_echo "no" >&6; }
index 1a9f5b5630636b63e4747f0d7f0de884a6b32745..31b9ccef2e3eec7ba94da5c529049f2ac7f367c4 100644 (file)
@@ -1582,6 +1582,7 @@ AC_MSG_CHECKING([if building with -DNDEBUG])
 if echo "$CFLAGS" | grep '\-DNDEBUG' > /dev/null; then
   AC_MSG_RESULT([yes])
   AC_DEFINE([WITH_NDEBUG], [1], [define if the server was built with -DNDEBUG])
+  CFLAGS="$CFLAGS -DTALLOC_GET_TYPE_ABORT_NOOP"
 else
   AC_MSG_RESULT([no])
 fi