]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
m4: Fix configuration of libunwind on i386 (and probably other systems).
authorStephan Bosch <stephan.bosch@open-xchange.com>
Sat, 18 Apr 2020 10:56:14 +0000 (12:56 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Tue, 26 Jan 2021 08:13:33 +0000 (08:13 +0000)
Use the standard libunwind-coredump instead of the system-dependent library.
This way, all can be configured using pkg-config, without relying on a failed
attempt to use the $build_cpu variable to find the system-dependent library.
This fails on i386 and probably other systems as well.

m4/want_unwind.m4
run-test-valgrind.supp

index 4b7989e7fcb2af1c16ef9e395a9e0871246bd54c..cadb62b71dbf8e681ee170bb6d90198227f761d5 100644 (file)
@@ -2,17 +2,9 @@ AC_DEFUN([DOVECOT_WANT_UNWIND], [
   have_libunwind=no
   AS_IF([test "$want_libunwind" != "no"], [
     PKG_CHECK_EXISTS([libunwind], [
-      PKG_CHECK_MODULES([LIBUNWIND], [libunwind],[
-        dnl see if there is target-specific library
-        AC_CHECK_LIB([unwind-${build_cpu}], [_U${build_cpu}_init_local],[
-          have_libunwind=yes
-          LIBUNWIND_LIBS="$LIBUNWIND_LIBS -lunwind-${build_cpu}"
-          AC_DEFINE([HAVE_LIBUNWIND],,[Define this if you have libunwind])
-        ],[
-           have_libunwind=no
-           LIBUNWIND_LIBS=""
-           LIBUNWIND_CFLAGS=""
-        ])
+      PKG_CHECK_MODULES([LIBUNWIND], [libunwind-generic],[
+        have_libunwind=yes
+       AC_DEFINE([HAVE_LIBUNWIND],,[Define this if you have libunwind])
       ])
      ])
   ])
index d7f2e9826095ae28cbeb0620649886dea017aed2..96544884b50fa3b968df23f3b996038df4902f94 100644 (file)
@@ -60,9 +60,9 @@
    Memcheck:Param
    msync(start)
    ...
-   obj:/usr/lib/x86_64-linux-gnu/libunwind-x86_64.so.8.0.1
-   fun:_Ux86_64_step
-   fun:backtrace_append_unwind
+   obj:*libunwind*
+   ...
+   fun:backtrace_append
    ...
 }
 {