sdl2: build without libunwind
authorDaniel Golle <daniel@makrotopia.org>
Fri, 6 Dec 2024 15:42:37 +0000 (15:42 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Sat, 7 Dec 2024 00:51:36 +0000 (00:51 +0000)
SDL2 links tests against libunwind if libunwind is detected by CMake.
This results in build failure due to undefined symbols.
Prevent building with libunwind for now.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
libs/sdl2/patches/110-tests-no-libunwind.patch [new file with mode: 0644]

diff --git a/libs/sdl2/patches/110-tests-no-libunwind.patch b/libs/sdl2/patches/110-tests-no-libunwind.patch
new file mode 100644 (file)
index 0000000..eb9ec8d
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/cmake/sdlchecks.cmake
++++ b/cmake/sdlchecks.cmake
+@@ -1406,7 +1406,4 @@ macro(CheckLibUnwind)
+     endif()
+   endif()
+-  if(found_libunwind)
+-    set(HAVE_LIBUNWIND_H TRUE)
+-  endif()
+ endmacro()