1From 779bbfebcd414a2cb4ab73ff1c4eb987cfdab456 Mon Sep 17 00:00:00 2001
2From: Pablo Saavedra <psaavedra@igalia.com>
3Date: Mon, 11 Nov 2024 13:05:15 +0100
4Subject: [PATCH] meson: Check for libunwind instead of libunwind-generic
5
6This helps it to use llvm unwinder since libunwind-generic is specific
7to nongnu libunwind.
8
9Upstream-Status: Submitted [https://gitlab.gnome.org/GNOME/sysprof/-/merge_requests/95]
10
11Original-by: Khem Raj <raj.khem@gmail.com>
12Modified-by: Pablo Saavedra <psaavedra@igalia.com>
13
14Signed-off-by: Khem Raj <raj.khem@gmail.com>
15Signed-off-by: Pablo Saavedra <psaavedra@igalia.com>
16---
17 meson.build | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20diff --git a/meson.build b/meson.build
21index 96c1d09..86b9df4 100644
22--- a/meson.build
23+++ b/meson.build
24@@ -107,7 +107,7 @@ polkit_dep = dependency('polkit-gobject-1', version: polkit_req_version, require
25 config_h.set10('HAVE_POLKIT', polkit_dep.found())
26
27 if need_libsysprof
28-  libunwind_dep = dependency('libunwind-generic', required: true)
29+  libunwind_dep = dependency('libunwind', required: true)
30   config_h.set('ENABLE_LIBUNWIND', libunwind_dep.found())
31   config_h.set('HAVE_UNW_SET_CACHE_SIZE',
32                cc.has_header_symbol('libunwind.h',
33