From: Jan Maria Matejka Date: Fri, 14 Dec 2018 14:50:44 +0000 (+0100) Subject: Debug: support for -gdwarf-4 is not available everywhere X-Git-Tag: v2.0.3~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78131eee64aeaf14cf418d6e5bf3f17ca602afb7;p=thirdparty%2Fbird.git Debug: support for -gdwarf-4 is not available everywhere --- diff --git a/configure.ac b/configure.ac index ae2710f54..4dda60cb3 100644 --- a/configure.ac +++ b/configure.ac @@ -343,7 +343,10 @@ fi if test "$enable_debug" = yes ; then AC_DEFINE([DEBUGGING], [1], [Define to 1 if debugging is enabled]) LDFLAGS="$LDFLAGS -rdynamic" - CFLAGS="$CFLAGS -O0 -ggdb -g3 -gdwarf-4" + CFLAGS="$CFLAGS -O0 -ggdb -g3" + + BIRD_CHECK_GCC_OPTION([bird_cv_c_option_dwarf4], [-gdwarf-4], []) + BIRD_ADD_GCC_OPTION([bird_cv_c_option_dwarf4], [-gdwarf-4]) AC_CHECK_HEADER([execinfo.h], [