diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-02-24 13:06:55 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-02-24 13:06:55 -0500 |
commit | 0efa2821c7e1865d8f515df735fd8ad0db5ff467 (patch) | |
tree | b2638be905fdf366342770626618c481278526be | |
parent | 9bd77019cafcd9b8f4b76c875103093f5b4594e1 (diff) | |
parent | 68ed4878ca97902c8b909d88dd855d71e6647376 (diff) | |
download | tor-0efa2821c7e1865d8f515df735fd8ad0db5ff467.tar.gz tor-0efa2821c7e1865d8f515df735fd8ad0db5ff467.zip |
Merge branch 'bug11047'
-rw-r--r-- | changes/bug11047 | 9 | ||||
-rw-r--r-- | configure.ac | 7 |
2 files changed, 16 insertions, 0 deletions
diff --git a/changes/bug11047 b/changes/bug11047 new file mode 100644 index 0000000000..25acd8e36d --- /dev/null +++ b/changes/bug11047 @@ -0,0 +1,9 @@ + o Minor bugfixes: + + - Build using the -fasynchronous-unwind-tables option so that more + platforms (in particular, ones like 32-bit Intel where the + -fomit-frame-pointer option is on by default and table + generation is not) will support generating backtraces. This + doesn't yet add Windows support yet; only Linux, OSX, and some BSD + are affected. Reported by 'cypherpunks'; fixes bug 11047; bugfix + on 0.2.5.2-alpha. diff --git a/configure.ac b/configure.ac index ee78d60182..c11cf842d1 100644 --- a/configure.ac +++ b/configure.ac @@ -649,6 +649,13 @@ CFLAGS="$saved_CFLAGS" AC_SUBST(F_OMIT_FRAME_POINTER) dnl ------------------------------------------------------ +dnl If we are adding -fomit-frame-pointer (or if the compiler's doing it +dnl for us, as GCC 4.6 and later do at many optimization levels), then +dnl we should try to add -fasynchronous-unwind-tables so that our backtrace +dnl code will work. +TOR_CHECK_CFLAGS(-fasynchronous-unwind-tables) + +dnl ------------------------------------------------------ dnl Where do you live, libnatpmp? And how do we call you? dnl There are no packages for Debian or Redhat as of this patch |