From: Maria Matejka Date: Mon, 30 Sep 2019 11:54:14 +0000 (+0200) Subject: Build: Pass -g to cc called as linker to explicitly keep debug info X-Git-Tag: v2.0.7~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc95b4594ac924b40325a4f1adcae5312179db40;p=thirdparty%2Fbird.git Build: Pass -g to cc called as linker to explicitly keep debug info --- diff --git a/configure.ac b/configure.ac index 35d05ac4a..40f021a16 100644 --- a/configure.ac +++ b/configure.ac @@ -151,6 +151,8 @@ if test "$bird_cflags_default" = yes ; then if test "$bird_cv_c_lto" = yes; then CFLAGS="$CFLAGS -flto" LDFLAGS="$LDFLAGS -flto=4 -g" + else + LDFLAGS="$LDFLAGS -g" fi CFLAGS="$CFLAGS -Wall -Wextra -Wstrict-prototypes -Wno-parentheses"