From dc85b220a51c32f4e3b8f3cde103c188a9c43d5b Mon Sep 17 00:00:00 2001 From: Simon Bauer Date: Thu, 30 Sep 2021 12:53:03 +0200 Subject: [PATCH 1/2] Fixed CFLags for debug mode Fixing the behavior when using the `--enable-debug` flag -> the `CFLAGS` variable get's overwritten. Also logging out the `LDFLAGS` variable for debugging purposes. --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 590ebcbb..10384973 100644 --- a/configure.ac +++ b/configure.ac @@ -123,12 +123,13 @@ AC_ARG_ENABLE(debug, AS_HELP_STRING([--enable-debug],[Build with debug symbols, AC_MSG_RESULT(debug is $ac_enable_debug) if test "$ac_enable_debug" = "yes"; then - CFLAGS="-g -Wall" + CFLAGS="$CFLAGS -g -Wall" INSTALLFLAGS="" fi AC_MSG_RESULT(CPPFLAGS is $CPPFLAGS) AC_MSG_RESULT(CFLAGS is $CFLAGS) +AC_MSG_RESULT(LDFLAGS is $LDFLAGS) AC_MSG_RESULT(INSTALLFLAGS is $INSTALLFLAGS) AC_PROG_YACC From f65c90f15173db9366af2910d869eaf81599fee9 Mon Sep 17 00:00:00 2001 From: Simon Bauer Date: Thu, 30 Sep 2021 12:25:25 +0000 Subject: [PATCH 2/2] Regenerated configure script --- configure | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 348943b9..75dbd76f 100755 --- a/configure +++ b/configure @@ -4325,7 +4325,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug is $ac_enable_debug" >&5 $as_echo "debug is $ac_enable_debug" >&6; } if test "$ac_enable_debug" = "yes"; then - CFLAGS="-g -Wall" + CFLAGS="$CFLAGS -g -Wall" INSTALLFLAGS="" fi @@ -4333,6 +4333,8 @@ fi $as_echo "CPPFLAGS is $CPPFLAGS" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: CFLAGS is $CFLAGS" >&5 $as_echo "CFLAGS is $CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: LDFLAGS is $LDFLAGS" >&5 +$as_echo "LDFLAGS is $LDFLAGS" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: INSTALLFLAGS is $INSTALLFLAGS" >&5 $as_echo "INSTALLFLAGS is $INSTALLFLAGS" >&6; }