diff options
author | Sven Neumann <s.neumann@raumfeld.com> | 2011-08-19 10:16:51 +0200 |
---|---|---|
committer | Arun Sharma <asharma@fb.com> | 2011-08-27 21:54:52 -0700 |
commit | f195c9ad52d41088eb99bbbdfee75d628ab54700 (patch) | |
tree | 58ef4d021c8b2431359e33cfd63f4e8aea1eef0d | |
parent | 112c927371b8253040a38da697372a3fd67ad520 (diff) | |
download | libunwind-f195c9ad52d41088eb99bbbdfee75d628ab54700.tar.gz |
Skip a few tests on uCLibC
Without this, the build fails on platforms that don't implement
backtrace().
-rw-r--r-- | configure.in | 1 | ||||
-rw-r--r-- | tests/Makefile.am | 9 |
2 files changed, 7 insertions, 3 deletions
diff --git a/configure.in b/configure.in index c17b9da8..0971bcb4 100644 --- a/configure.in +++ b/configure.in @@ -276,6 +276,7 @@ PKG_MAINTAINER=pkg_maintainer old_LIBS="$LIBS" LIBS="" AC_SEARCH_LIBS(backtrace, execinfo) +AM_CONDITIONAL(HAVE_BACKTRACE, test "x$ac_cv_search_backtrace" != xno) BACKTRACELIB="$LIBS" LIBS="$old_LIBS" diff --git a/tests/Makefile.am b/tests/Makefile.am index 59ad3b3b..8a298cab 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -46,9 +46,12 @@ endif #ARCH_IA64 test-async-sig test-flush-cache test-init-remote \ test-mem test-setjmp test-ptrace \ Ltest-nomalloc Ltest-nocalloc rs-race - noinst_PROGRAMS_cdep = forker mapper test-ptrace-misc test-varargs \ - Gperf-simple Lperf-simple \ - Gperf-trace Lperf-trace + noinst_PROGRAMS_cdep = forker mapper test-ptrace-misc \ + Gperf-simple Lperf-simple + +if HAVE_BACKTRACE + noinst_PROGRAMS_cdep += Gperf-trace Lperf-trace test-varargs +endif if SUPPORT_CXX_EXCEPTIONS check_PROGRAMS_cdep += Ltest-cxx-exceptions |