From 1b114fa2d221c9810852526f8b45a3d2c856a502 Mon Sep 17 00:00:00 2001 From: Carlos Rafael Giani Date: Fri, 4 Mar 2022 08:55:07 +0100 Subject: [PATCH] libsdl2: Add libunwind-native to the libsdl2-native DEPENDS This fixes this CMake configuration error: | -- Checking for one of the modules 'libunwind' | CMake Error at [...]/build/tmp/work/x86_64-linux/libsdl2-native/2.0.20-r0/recipe-sysroot-native/usr/share/cmake-3.22/Modules/FindPkgConfig.cmake:890 (message): | None of the required 'libunwind' found | Call Stack (most recent call first): | CMakeLists.txt:1367 (pkg_search_module) This error happens even if libunwind is installed complete with its C headers and development .so files (in Ubuntu, this means libunwind-dev is installed). Signed-off-by: Carlos Rafael Giani Signed-off-by: Richard Purdie --- meta/recipes-graphics/libsdl2/libsdl2_2.0.20.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/recipes-graphics/libsdl2/libsdl2_2.0.20.bb b/meta/recipes-graphics/libsdl2/libsdl2_2.0.20.bb index 90724ab8b7..802efba980 100644 --- a/meta/recipes-graphics/libsdl2/libsdl2_2.0.20.bb +++ b/meta/recipes-graphics/libsdl2/libsdl2_2.0.20.bb @@ -27,6 +27,8 @@ SRC_URI[sha256sum] = "c56aba1d7b5b0e7e999e4a7698c70b63a3394ff9704b5f6e1c57e0c16f inherit cmake lib_package binconfig-disabled pkgconfig +DEPENDS:class-native += "libunwind-native" + BINCONFIG = "${bindir}/sdl2-config" CVE_PRODUCT = "simple_directmedia_layer sdl" -- 2.40.1