Commit cc95b459 authored by Maria Matejka's avatar Maria Matejka Committed by Ondrej Zajicek (work)
Browse files

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

parent d6eea6ca
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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"