mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-01-10 19:23:41 +01:00
Make the linking of C++ ABI related code for exceptions optional.
The default is to have it enabled. Signed-off-by: Arun Sharma <arun.sharma@google.com>
This commit is contained in:
parent
1eddefc371
commit
8081e82ba1
2 changed files with 10 additions and 0 deletions
|
@ -116,6 +116,14 @@ AC_ARG_ENABLE(debug,
|
|||
[ --enable-debug turn on debug support (slows down execution)],
|
||||
[enable_debug=yes], [])
|
||||
|
||||
AC_ARG_ENABLE(cxx_exceptions,
|
||||
[ --enable-cxx-exceptions use libunwind to handle C++ exceptions],
|
||||
[enable_cxx_exceptions=$enableval], [enable_cxx_exceptions=yes])
|
||||
if test x$enable_cxx_exceptions = xyes; then
|
||||
AC_MSG_NOTICE([Enabling C++ exception support])
|
||||
fi
|
||||
AM_CONDITIONAL([SUPPORT_CXX_EXCEPTIONS], [test x$enable_cxx_exceptions = xyes])
|
||||
|
||||
LIBUNWIND___THREAD
|
||||
|
||||
save_LDFLAGS="$LDFLAGS"
|
||||
|
|
|
@ -61,6 +61,7 @@ libunwind_la_SOURCES_generic = \
|
|||
mi/Gget_fpreg.c mi/Gset_fpreg.c \
|
||||
mi/Gset_caching_policy.c
|
||||
|
||||
if SUPPORT_CXX_EXCEPTIONS
|
||||
libunwind_la_SOURCES_local_unwind = \
|
||||
unwind/Backtrace.c unwind/DeleteException.c \
|
||||
unwind/FindEnclosingFunction.c unwind/ForcedUnwind.c \
|
||||
|
@ -69,6 +70,7 @@ libunwind_la_SOURCES_local_unwind = \
|
|||
unwind/GetRegionStart.c unwind/GetTextRelBase.c \
|
||||
unwind/RaiseException.c unwind/Resume.c \
|
||||
unwind/Resume_or_Rethrow.c unwind/SetGR.c unwind/SetIP.c
|
||||
endif
|
||||
|
||||
# List of arch-independent files needed by local-only library (libunwind):
|
||||
libunwind_la_SOURCES_local_nounwind = \
|
||||
|
|
Loading…
Reference in a new issue