On Linux (and some other systems) we need -rdynamic for backtraces

This commit is contained in:
Nick Mathewson 2013-07-19 14:18:43 -04:00
parent 063bea58bc
commit b0023083c4
1 changed files with 3 additions and 0 deletions

View File

@ -593,6 +593,9 @@ if test x$enable_linker_hardening != xno; then
TOR_CHECK_LDFLAGS(-z relro -z now, "$all_ldflags_for_check", "$all_libs_for_check")
fi
# For backtrace support
TOR_CHECK_LDFLAGS(-rdynamic)
dnl ------------------------------------------------------
dnl Now see if we have a -fomit-frame-pointer compiler option.