]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Build: Pass -g to cc called as linker to explicitly keep debug info
authorMaria Matejka <mq@ucw.cz>
Mon, 30 Sep 2019 11:54:14 +0000 (13:54 +0200)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Wed, 9 Oct 2019 15:47:14 +0000 (17:47 +0200)
configure.ac

index 35d05ac4ac8a7a6e741f8ee73d09ee5d8710abc3..40f021a16d1ff49e9da18a5bab7218d329c25139 100644 (file)
@@ -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"