Skip to content

Commit

Permalink
satyr: use native unwinder
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Filak committed Feb 19, 2015
1 parent 2365d16 commit c5661f2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion abrt.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down
13 changes: 13 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c5661f2

Please sign in to comment.