From 2a97037fcc57415151b7f69585772d6e774c8f04 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 15 Nov 2019 17:37:14 +0100 Subject: Create DEBUG_FLAGS and use that in the Makefiles whenever appropriate, instead of adding -Wall -Werror directly to CXXFLAGS. --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index ed8cc65..4e3d2ed 100644 --- a/configure.ac +++ b/configure.ac @@ -127,9 +127,10 @@ dnl Set up debug compile args if the user requested it dnl =========================== AS_IF([test "x$with_debug" == "xyes"], [AC_MSG_WARN([*** Building with debug support!]) - CXXFLAGS="$CXXFLAGS -Wall -Werror -g $NO_UNDEFINED_PARAM" + DEBUG_FLAGS="-Wall -Werror -g $NO_UNDEFINED_PARAM" HUGIN_PARM=""] ) +AC_SUBST(DEBUG_FLAGS) CXXFLAGS="$CXXFLAGS $HUGIN_PARM" -- cgit v1.2.3