aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/gperftools/gperftools/disable_libunwind_aarch64.patch
blob: f2647404bfce0a11f8d4706db36dcbab43e5031a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Disable libunwind on aarch64

Fixes hangs when using libtcmalloc.so

Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>

Index: git/configure.ac
===================================================================
--- git.orig/configure.ac
+++ git/configure.ac
@@ -69,6 +69,11 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM(, [re
                   [default_enable_libunwind=yes
                    default_tcmalloc_pagesize=8])
 
+# Disable libunwind linking on aarch64 by default.
+AC_COMPILE_IFELSE([AC_LANG_PROGRAM(, [return __aarch64__])],
+                  [default_enable_libunwind=no],
+                  [default_enable_libunwind=yes])
+
 AC_ARG_ENABLE([cpu-profiler],
               [AS_HELP_STRING([--disable-cpu-profiler],
                               [do not build the cpu profiler])],