1From 564f800e3e24647c095f7a321bf3ebdccfbf762d Mon Sep 17 00:00:00 2001 2From: Khem Raj <raj.khem@gmail.com> 3Date: Sat, 2 Sep 2017 12:02:04 -0700 4Subject: [PATCH] Disable libunwind on aarch64 5 6Fixes hangs when using libtcmalloc.so 7 8Upstream-Status: Pending 9Signed-off-by: Khem Raj <raj.khem@gmail.com> 10 11--- 12 configure.ac | 5 +++++ 13 1 file changed, 5 insertions(+) 14 15--- a/configure.ac 16+++ b/configure.ac 17@@ -76,6 +76,11 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM(, [re 18 [default_enable_libunwind=yes 19 default_tcmalloc_pagesize=8]) 20 21+# Disable libunwind linking on aarch64 by default. 22+AC_COMPILE_IFELSE([AC_LANG_PROGRAM(, [return __aarch64__])], 23+ [default_enable_libunwind=no], 24+ [default_enable_libunwind=yes]) 25+ 26 AC_ARG_ENABLE([cpu-profiler], 27 [AS_HELP_STRING([--disable-cpu-profiler], 28 [do not build the cpu profiler])], 29