xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-graphics/libsdl2/libsdl2/optional-libunwind-generic.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1Do not error when libunwind-generic is not found, Not all
2implementations of libunwind will provide this library therefore
3do not make it hard error if its not found.
4
5Upstream-Status: Submitted [https://github.com/libsdl-org/SDL/pull/5194]
6Signed-off-by: Khem Raj <raj.khem@gmail.com>
7
8--- a/CMakeLists.txt
9+++ b/CMakeLists.txt
10@@ -1358,7 +1358,7 @@ elseif(UNIX AND NOT APPLE AND NOT ANDROI
11       if(HAVE_LIBUNWIND_H)
12         # We've already found the header, so REQUIRE the lib to be present
13         pkg_search_module(UNWIND REQUIRED libunwind)
14-        pkg_search_module(UNWIND_GENERIC REQUIRED libunwind-generic)
15+        pkg_search_module(UNWIND_GENERIC libunwind-generic)
16         list(APPEND EXTRA_LIBS ${UNWIND_LIBRARIES} ${UNWIND_GENERIC_LIBRARIES})
17       endif()
18     endif()
19