Build: Pass -g to cc called as linker to explicitly keep debug info

This commit is contained in:
Maria Matejka 2019-09-30 13:54:14 +02:00 committed by Ondrej Zajicek (work)
parent d6eea6caee
commit cc95b4594a

View 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"