Patrick Williams | 2390b1b | 2022-11-03 13:47:49 -0500 | [diff] [blame^] | 1 | From 77093de6a12c24a60fc447698900d18d0a3943af Mon Sep 17 00:00:00 2001 |
Patrick Williams | de0582f | 2022-04-08 10:23:27 -0500 | [diff] [blame] | 2 | From: Carlos Rafael Giani <crg7475@mailbox.org> |
| 3 | Date: Fri, 18 Mar 2022 12:06:23 +0100 |
| 4 | Subject: [PATCH] Disable libunwind in native OE builds by not looking for |
| 5 | libunwind |
| 6 | |
| 7 | This is a workaround for this build error: |
| 8 | |
| 9 | | -- Checking for one of the modules 'libunwind' |
| 10 | | 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): |
| 11 | | None of the required 'libunwind' found |
| 12 | | Call Stack (most recent call first): |
| 13 | | CMakeLists.txt:1367 (pkg_search_module) |
| 14 | |
| 15 | By not looking for the libunwind header, the rest of the libunwind |
| 16 | specific bits in the CMake build script are disabled. |
| 17 | |
| 18 | Upstream-Status: Inappropriate [OE specific] |
Andrew Geissler | d583833 | 2022-05-27 11:33:10 -0500 | [diff] [blame] | 19 | |
Patrick Williams | de0582f | 2022-04-08 10:23:27 -0500 | [diff] [blame] | 20 | --- |
| 21 | CMakeLists.txt | 2 +- |
| 22 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 23 | |
| 24 | diff --git a/CMakeLists.txt b/CMakeLists.txt |
Patrick Williams | 2390b1b | 2022-11-03 13:47:49 -0500 | [diff] [blame^] | 25 | index 7617205..d9b1522 100644 |
Patrick Williams | de0582f | 2022-04-08 10:23:27 -0500 | [diff] [blame] | 26 | --- a/CMakeLists.txt |
| 27 | +++ b/CMakeLists.txt |
Patrick Williams | 2390b1b | 2022-11-03 13:47:49 -0500 | [diff] [blame^] | 28 | @@ -952,7 +952,7 @@ if(SDL_LIBC) |
Patrick Williams | de0582f | 2022-04-08 10:23:27 -0500 | [diff] [blame] | 29 | check_include_file(sys/types.h HAVE_SYS_TYPES_H) |
| 30 | foreach(_HEADER |
| 31 | stdio.h stdlib.h stddef.h stdarg.h malloc.h memory.h string.h limits.h float.h |
| 32 | - strings.h wchar.h inttypes.h stdint.h ctype.h math.h iconv.h signal.h libunwind.h) |
| 33 | + strings.h wchar.h inttypes.h stdint.h ctype.h math.h iconv.h signal.h) |
| 34 | string(TOUPPER "HAVE_${_HEADER}" _UPPER) |
| 35 | string(REPLACE "." "_" _HAVE_H ${_UPPER}) |
| 36 | check_include_file("${_HEADER}" ${_HAVE_H}) |