Browse Source

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

Nick Mathewson 11 years ago
parent
commit
b0023083c4
1 changed files with 3 additions and 0 deletions
  1. 3 0
      configure.ac

+ 3 - 0
configure.ac

@@ -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.