1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-06-26 03:11:44 +02: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:
Arun Sharma 2008-06-16 14:28:36 -06:00 committed by David Mosberger-Tang
parent 1eddefc371
commit 8081e82ba1
2 changed files with 10 additions and 0 deletions

View file

@ -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"

View file

@ -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 = \