From ea0867860fb769d90464528d8c72d72642f55af1 Mon Sep 17 00:00:00 2001 From: "C.W. Betts" Date: Wed, 19 May 2021 16:37:42 -0600 Subject: [PATCH] Configure: pick up flags from the command line Allow configure to pick up CFLAGS and CXXFLAGS from the command line. Note: configure will need to be regenerated. --- configure.ac | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 407b057..6a308d2 100644 --- a/configure.ac +++ b/configure.ac @@ -27,12 +27,12 @@ AC_MSG_CHECKING([whether to enable debugging]) AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug], [build debug executable])) if test "$enable_debug" = "yes"; then - CFLAGS="-Wall -O0 -g -D_DEBUG -fcommon" - CXXFLAGS="-Wall -O0 -g -D_DEBUG -fcommon" + CFLAGS="$CFLAGS -Wall -O0 -g -D_DEBUG -fcommon" + CXXFLAGS="$CXXFLAGS -Wall -O0 -g -D_DEBUG -fcommon" AC_MSG_RESULT([yes]) else - CFLAGS="-O3 -fcommon" - CXXFLAGS="-O3 -fcommon" + CFLAGS="$CFLAGS -O3 -fcommon" + CXXFLAGS="$CXXFLAGS -O3 -fcommon" AC_MSG_RESULT([no]) fi