From c66be3602a1b05cb89fb060e2165c93fe9fc3802 Mon Sep 17 00:00:00 2001 From: Anthony Scemama Date: Thu, 6 Oct 2022 10:22:59 +0200 Subject: [PATCH] debug flags --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index bed0c98..6463b54 100644 --- a/configure.ac +++ b/configure.ac @@ -383,9 +383,10 @@ AS_IF([test "$ok" = "yes"], [ AC_ARG_ENABLE(debug, [AS_HELP_STRING([--enable-debug],[compile for debugging])], ok=$enableval, ok=no) AS_IF([test "$ok" = "yes"], [ AS_IF([test "$GCC" = "yes"], [ + CPPFLAGS="-Wdate-time -D_FORTIFY_SOURCE=2" CFLAGS="$CFLAGS \ -g -Wall -W -Wbad-function-cast -Wcast-qual -Warray-bounds -Wdisabled-optimization \ --fsanitize=address -fno-omit-frame-pointer \ +-fsanitize=address -fno-omit-frame-pointer -fstack-protector-strong -Wformat -Werror=format-security \ -Wpointer-arith -Wcast-align -Wpedantic -Wextra -Walloc-zero -Werror \ " LDFLAGS="$LDFLAGS -fsanitize=address"