From b141809cd618d403e69f4e7fa24a6e2bbfaa4e47 Mon Sep 17 00:00:00 2001 From: Jakub Filak Date: Tue, 6 May 2014 13:29:26 +0200 Subject: [PATCH] satyr: use native unwinder --- abrt.spec.in | 2 +- configure.ac | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/abrt.spec.in b/abrt.spec.in index 576bf0dc5e..80a49bd901 100644 --- a/abrt.spec.in +++ b/abrt.spec.in @@ -215,7 +215,7 @@ problems handled by ABRT in Python. %build autoconf -%configure --with-systemdsystemunitdir="" +%configure --with-systemdsystemunitdir="" --enable-native-unwinder CFLAGS="-fno-strict-aliasing" make %{?_smp_mflags} diff --git a/configure.ac b/configure.ac index 54a8cc38af..e3cdb72de0 100644 --- a/configure.ac +++ b/configure.ac @@ -103,6 +103,19 @@ EVENTS_DIR='${sysconfdir}/libreport/events' EVENTS_CONF_DIR='${sysconfdir}/libreport/events.d' ENABLE_SOCKET_OR_DBUS='-DENABLE_DBUS=1' +# Make satyr use GDB or elfutils/libunwind for unwinding? + +AC_ARG_ENABLE([native-unwinder], + AS_HELP_STRING([--enable-native-unwinder], + [use native unwinder (libunwind or elfutils) instead of GDB (default is no)]), + [], [enable_native_unwinder=no]) + +[if test "$enable_native_unwinder" = "yes"] +[then] + AC_DEFINE([ENABLE_NATIVE_UNWINDER], [1], [Use elfutils/libunwind for unwinding instead of GDB.]) +[fi] + + AC_SUBST(CONF_DIR) AC_SUBST(VAR_RUN) AC_SUBST(PLUGINS_CONF_DIR)