From 3ac945b7ee32288bda667067095ad15498a14845 Mon Sep 17 00:00:00 2001 From: Zachary T Welch Date: Thu, 28 Oct 2010 16:25:50 -0700 Subject: [PATCH] Improve debug-frame configure option default Ensure that --enable-debug-frame is set automatically when building libunwind for an ARM target. Other targets continue to have --disable-debug-frame as the default setting. Signed-off-by: Zachary T Welch --- configure.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 729827aa..7dd991c7 100644 --- a/configure.in +++ b/configure.in @@ -179,7 +179,11 @@ AC_MSG_RESULT([$enable_cxx_exceptions]) AC_MSG_CHECKING([whether to load .debug_frame sections]) AC_ARG_ENABLE(debug_frame, [ --enable-debug-frame Load the ".debug_frame" section if available], -[enable_debug_frame=$enableval], [enable_debug_frame=no]) +[enable_debug_frame=$enableval], [ +case "${target_arch}" in + (arm) enable_debug_frame=yes;; + (*) enable_debug_frame=no;; +esac]) if test x$enable_debug_frame = xyes; then AC_DEFINE([CONFIG_DEBUG_FRAME], [], [Enable Debug Frame]) fi