summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2017-08-24 16:09:48 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2018-10-18 02:51:51 +0200
commit68b8a15f87cfaf9aff1d483abb037005c237fb24 (patch)
tree771365083373b2f0824c70665011b09f2bfa5508 /Makefile.am
parentb9ea4083854503850a18950206e7285f5266d5ea (diff)
lib: add libunwind support for backtraces
libunwind provides an alternate to backtrace() for printing out the call stack of a particular location. It doesn't use the frame pointer, it goes by the DWARF debug info. In most cases the traces have exactly the same information, but there are some situations where libunwind traces are better. (On some platforms, the libc backtrace() also uses the DWARF debug info [e.g.: ARM backtraces are impossible without it] but this is not the case everywhere, especially not on BSD libexecinfo.) Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 65aed79152..4cbf111b04 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -4,6 +4,7 @@ AUTOMAKE_OPTIONS = subdir-objects 1.12
ACLOCAL_AMFLAGS = -I m4
AM_CFLAGS = \
+ $(UNWIND_CFLAGS) \
$(SAN_FLAGS) \
$(WERROR) \
# end