mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-22 15:47:37 +01:00
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 <zwelch@codesourcery.com>
This commit is contained in:
parent
574873ca6e
commit
3ac945b7ee
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue