mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-12-25 12:33:42 +01:00
build: make libunwind-coredump build optional
Disable the building of libunwind-coredump except on x86_64 and x86 (where implimentations exsist). Allow overriding of this autodetection via --enable-coredump and --disable-coredump.
This commit is contained in:
parent
92af07ee19
commit
3a5d7ff694
3 changed files with 20 additions and 3 deletions
10
configure.in
10
configure.in
|
@ -102,6 +102,15 @@ build_arch=`get_arch $build_cpu`
|
|||
host_arch=`get_arch $host_cpu`
|
||||
target_arch=`get_arch $target_cpu`
|
||||
|
||||
AC_ARG_ENABLE(coredump,
|
||||
AS_HELP_STRING([--enable-coredump],[building libunwind-coredump library]),
|
||||
[enable_coredump=$enableval],
|
||||
[AS_CASE([$host_arch], [x86*], [enable_coredump=yes], [enable_coredump=no])]
|
||||
)
|
||||
|
||||
AC_MSG_CHECKING([if we should build libunwind-coredump])
|
||||
AC_MSG_RESULT([$enable_coredump])
|
||||
|
||||
AC_MSG_CHECKING([for build architecture])
|
||||
AC_MSG_RESULT([$build_arch])
|
||||
AC_MSG_CHECKING([for host architecture])
|
||||
|
@ -111,6 +120,7 @@ AC_MSG_RESULT([$target_arch])
|
|||
AC_MSG_CHECKING([for target operating system])
|
||||
AC_MSG_RESULT([$target_os])
|
||||
|
||||
AM_CONDITIONAL(BUILD_COREDUMP, test x$enable_coredump = xyes)
|
||||
AM_CONDITIONAL(REMOTE_ONLY, test x$target_arch != x$host_arch)
|
||||
AM_CONDITIONAL(ARCH_ARM, test x$target_arch = xarm)
|
||||
AM_CONDITIONAL(ARCH_IA64, test x$target_arch = xia64)
|
||||
|
|
|
@ -9,7 +9,10 @@ COMMON_SO_LDFLAGS = -XCClinker -nostartfiles
|
|||
lib_LIBRARIES =
|
||||
lib_LTLIBRARIES =
|
||||
if !REMOTE_ONLY
|
||||
lib_LTLIBRARIES += libunwind.la libunwind-coredump.la libunwind-ptrace.la
|
||||
lib_LTLIBRARIES += libunwind.la libunwind-ptrace.la
|
||||
if BUILD_COREDUMP
|
||||
lib_LTLIBRARIES += libunwind-coredump.la
|
||||
endif
|
||||
endif
|
||||
|
||||
noinst_HEADERS =
|
||||
|
|
|
@ -60,13 +60,15 @@ if SUPPORT_CXX_EXCEPTIONS
|
|||
endif
|
||||
|
||||
if OS_LINUX
|
||||
if BUILD_COREDUMP
|
||||
check_SCRIPTS_cdep += run-coredump-unwind
|
||||
noinst_PROGRAMS_cdep += test-coredump-unwind
|
||||
|
||||
if HAVE_LZMA
|
||||
check_SCRIPTS_cdep += run-coredump-unwind-mdi
|
||||
endif
|
||||
endif
|
||||
endif # HAVE_LZMA
|
||||
endif # BUILD_COREDUMP
|
||||
endif # OS_LINUX
|
||||
|
||||
perf: perf-startup Gperf-simple Lperf-simple Lperf-trace
|
||||
@echo "########## Basic performance of generic libunwind:"
|
||||
|
@ -177,7 +179,9 @@ Lperf_trace_LDADD = $(LIBUNWIND_local)
|
|||
test_setjmp_LDADD = $(LIBUNWIND_setjmp)
|
||||
ia64_test_setjmp_LDADD = $(LIBUNWIND_setjmp)
|
||||
|
||||
if BUILD_COREDUMP
|
||||
test_coredump_unwind_LDADD = $(LIBUNWIND_coredump) $(LIBUNWIND)
|
||||
endif
|
||||
|
||||
Gia64_test_nat_LDADD = $(LIBUNWIND) $(LIBUNWIND_local)
|
||||
Gia64_test_stack_LDADD = $(LIBUNWIND) $(LIBUNWIND_local)
|
||||
|
|
Loading…
Reference in a new issue