Commit 4a6b7b69 authored by Maria Matejka's avatar Maria Matejka
Browse files

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

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