]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
LTO: debug info also kept with the final binary
authorMaria Matejka <mq@ucw.cz>
Wed, 25 Sep 2019 14:37:16 +0000 (16:37 +0200)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Wed, 9 Oct 2019 15:47:14 +0000 (17:47 +0200)
configure.ac

index 7e8578ab48c4ead2687cb6a453a3c51295afefbd..35d05ac4ac8a7a6e741f8ee73d09ee5d8710abc3 100644 (file)
@@ -150,7 +150,7 @@ if test "$bird_cflags_default" = yes ; then
 
   if test "$bird_cv_c_lto" = yes; then
     CFLAGS="$CFLAGS -flto"
-    LDFLAGS="$LDFLAGS -flto=4"
+    LDFLAGS="$LDFLAGS -flto=4 -g"
   fi
 
   CFLAGS="$CFLAGS -Wall -Wextra -Wstrict-prototypes -Wno-parentheses"