mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-09 12:48:43 +00:00
Build: Pass -g to cc called as linker to explicitly keep debug info
This commit is contained in:
parent
d6eea6caee
commit
cc95b4594a
@ -151,6 +151,8 @@ if test "$bird_cflags_default" = yes ; then
|
|||||||
if test "$bird_cv_c_lto" = yes; then
|
if test "$bird_cv_c_lto" = yes; then
|
||||||
CFLAGS="$CFLAGS -flto"
|
CFLAGS="$CFLAGS -flto"
|
||||||
LDFLAGS="$LDFLAGS -flto=4 -g"
|
LDFLAGS="$LDFLAGS -flto=4 -g"
|
||||||
|
else
|
||||||
|
LDFLAGS="$LDFLAGS -g"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
CFLAGS="$CFLAGS -Wall -Wextra -Wstrict-prototypes -Wno-parentheses"
|
CFLAGS="$CFLAGS -Wall -Wextra -Wstrict-prototypes -Wno-parentheses"
|
||||||
|
Loading…
Reference in New Issue
Block a user