[Aptitude-svn-commit] r4322 - in branches/aptitude-0.3/aptitude: .
src/generic/util
Daniel Burrows
dburrows at costa.debian.org
Wed Sep 28 03:59:13 UTC 2005
Author: dburrows
Date: Wed Sep 28 03:59:10 2005
New Revision: 4322
Modified:
branches/aptitude-0.3/aptitude/ChangeLog
branches/aptitude-0.3/aptitude/configure.ac
branches/aptitude-0.3/aptitude/src/generic/util/exception.cc
Log:
Make the dynamic generation of backtraces a compile-time option.
Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog (original)
+++ branches/aptitude-0.3/aptitude/ChangeLog Wed Sep 28 03:59:10 2005
@@ -1,5 +1,12 @@
2005-09-27 Daniel Burrows <dburrows at debian.org>
+ * configure.ac, src/generic/util/exception.cc:
+
+ Make the dynamic generation of backtraces a configure-time
+ option; in order for them to be useful, a full symbol table
+ needs to be shipped with the program, and in the case of
+ aptitude, this DOUBLES the executable size.
+
* configure.ac:
Put libraries detected by configure into LIBS, not LDFLAGS.
Modified: branches/aptitude-0.3/aptitude/configure.ac
==============================================================================
--- branches/aptitude-0.3/aptitude/configure.ac (original)
+++ branches/aptitude-0.3/aptitude/configure.ac Wed Sep 28 03:59:10 2005
@@ -143,6 +143,14 @@
WERROR="-Werror"
+AC_ARG_ENABLE(dynamic-backtrace,
+ AS_HELP_STRING([--enable-dynamic-backtrace], [Modify the executable so that it can generate a backtrace for uncaught exceptions. Will double the size of the stripped binary.]),
+ if test x$enableval = xyes
+ then
+ AC_DEFINE(ENABLE_DYNAMIC_BACKTRACE, [], [Define to enable dynamic generation of backtraces if HAVE_EXECINFO_H is defined])
+ LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
+ fi
+ )
AC_ARG_ENABLE(werror,
AS_HELP_STRING([--disable-werror], [do not compile with -Werror]),
if test x$enableval = xno
Modified: branches/aptitude-0.3/aptitude/src/generic/util/exception.cc
==============================================================================
--- branches/aptitude-0.3/aptitude/src/generic/util/exception.cc (original)
+++ branches/aptitude-0.3/aptitude/src/generic/util/exception.cc Wed Sep 28 03:59:10 2005
@@ -23,7 +23,7 @@
#include <config.h>
#endif
-#ifdef HAVE_EXECINFO_H
+#if defined(HAVE_EXECINFO_H) && defined(ENABLE_DYNAMIC_BACKTRACE)
#include <execinfo.h>
More information about the Aptitude-svn-commit
mailing list