From cc95b4594ac924b40325a4f1adcae5312179db40 Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Mon, 30 Sep 2019 13:54:14 +0200 Subject: [PATCH] Build: Pass -g to cc called as linker to explicitly keep debug info --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure.ac b/configure.ac index 35d05ac4..40f021a1 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"