aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/gperftools/gperftools/disable_libunwind_aarch64.patch
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2017-09-02 12:02:04 -0700
committerMartin Jansa <Martin.Jansa@gmail.com>2017-09-05 14:34:34 +0200
commit7704781a9b79168703b109851ee8a4b7e40cefa9 (patch)
tree03a1473350a912568d7777e3d3db0c6f5e8e0293 /meta-oe/recipes-support/gperftools/gperftools/disable_libunwind_aarch64.patch
parent6f1ee9c233e347c62cf871ac1f12a9ff38e3510b (diff)
downloadmeta-openembedded-contrib-7704781a9b79168703b109851ee8a4b7e40cefa9.tar.gz
meta-openembedded-contrib-7704781a9b79168703b109851ee8a4b7e40cefa9.tar.bz2
meta-openembedded-contrib-7704781a9b79168703b109851ee8a4b7e40cefa9.zip
gperftools: Fix build with musl
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/gperftools/gperftools/disable_libunwind_aarch64.patch')
-rw-r--r--meta-oe/recipes-support/gperftools/gperftools/disable_libunwind_aarch64.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/gperftools/gperftools/disable_libunwind_aarch64.patch b/meta-oe/recipes-support/gperftools/gperftools/disable_libunwind_aarch64.patch
new file mode 100644
index 0000000000..f2647404bf
--- /dev/null
+++ b/meta-oe/recipes-support/gperftools/gperftools/disable_libunwind_aarch64.patch
@@ -0,0 +1,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])],