build: add rdynamic to linking options for debug

rdynamic should allow us to get better backtrace data
This commit is contained in:
Danny Robson 2014-09-17 18:19:55 +10:00
parent bb3cbb584c
commit b297f168f7

View File

@ -166,6 +166,7 @@ AS_IF([test "x$enable_debugging" = "xyes"], [
]) ])
AX_APPEND_COMPILE_FLAGS([-ggdb], [], [-Werror]) AX_APPEND_COMPILE_FLAGS([-ggdb], [], [-Werror])
AX_APPEND_LINK_FLAGS([-rdynamic])
AC_DEFINE([ENABLE_DEBUGGING], [], [Debugging support enabled], [], [-Werror]) AC_DEFINE([ENABLE_DEBUGGING], [], [Debugging support enabled], [], [-Werror])
AC_DEFINE([_GLIBCXX_DEBUG], [], [Use glibcxx debugging mode], [], [-Werror]) AC_DEFINE([_GLIBCXX_DEBUG], [], [Use glibcxx debugging mode], [], [-Werror])