aboutsummaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-connectivity/snort/snort3/0001-cmake-Check-for-HP-libunwind.patch
blob: 7b7a0d098f6a08083ce03ccf7d533b87ae338543 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From 433a412fad2ab0383ac3c625d183a71684f2b97b Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Tue, 20 Feb 2024 15:35:14 -0800
Subject: [PATCH] cmake: Check for HP libunwind

This is to ensure that cmake does not detect LLVM unwinder, which
can provide the support for some HP unwinder functionality but not all
e.g. unw_strerror goes missing. By checking for libunwind-common.h in
tests we ensure that this test passes only with HP libunwind.

Upstream-Status: Inappropriate [OE-Specific]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 cmake/FindLibunwind.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmake/FindLibunwind.cmake b/cmake/FindLibunwind.cmake
index f66800a18..1ad66fc83 100644
--- a/cmake/FindLibunwind.cmake
+++ b/cmake/FindLibunwind.cmake
@@ -22,7 +22,7 @@ find_package(PkgConfig QUIET)
 pkg_check_modules(PC_LIBUNWIND libunwind)
 
 find_path(LIBUNWIND_INCLUDE_DIRS
-    NAMES libunwind.h
+    NAMES libunwind-common.h
     HINTS ${PC_LIBUNWIND_INCLUDE_DIRS}
 )
 
-- 
2.43.2