From cd91671068f51bda2e1b166d1222a350d1b18319 Mon Sep 17 00:00:00 2001 From: Michael Ortmann <41313082+michaelortmann@users.noreply.github.com> Date: Wed, 7 Aug 2024 02:34:06 +0200 Subject: [PATCH] Revert adding -fsanitize=address Fix make bug, see test case below So we can only add -Og, not -fsanitize=address Due to the current ordering of eggdrop CFLAGS/DEBUGFLAGS, it is a good idea to remove it anyway, because currently -fsanitize=address is appended after USER CFLAGS. --- aclocal.m4 | 1 - 1 file changed, 1 deletion(-) diff --git a/aclocal.m4 b/aclocal.m4 index 13e3649e9..de8d6e665 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -1249,7 +1249,6 @@ AC_DEFUN([EGG_DEBUG_DEFAULTS], debug_cflags_debug="-g3 -DDEBUG" AX_CHECK_COMPILE_FLAG([-Og], [debug_cflags_debug="-Og $debug_cflags_debug"]) - AX_CHECK_COMPILE_FLAG([-fsanitize=address], [debug_cflags_debug="$debug_cflags_debug -fsanitize=address"]) debug_cflags_debug_assert="-DDEBUG_ASSERT" debug_cflags_debug_mem="-DDEBUG_MEM" debug_cflags_debug_dns="-DDEBUG_DNS"