sdl2: get rid of libunwind for good
authorDaniel Golle <daniel@makrotopia.org>
Sun, 8 Dec 2024 02:00:37 +0000 (02:00 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Sun, 8 Dec 2024 02:08:48 +0000 (02:08 +0000)
Previous attempts to prevent linking against libunwind were incomplete.
Simply don't call CheckLibUnwind macro.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
libs/sdl2/patches/110-tests-no-libunwind.patch

index eb9ec8db85d3de2c85d684b31235b6de5da722ce..85fa9cb4f789d0530e6e77faf421959ecfcb2725 100644 (file)
@@ -1,10 +1,10 @@
---- a/cmake/sdlchecks.cmake
-+++ b/cmake/sdlchecks.cmake
-@@ -1406,7 +1406,4 @@ macro(CheckLibUnwind)
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1622,7 +1622,6 @@ elseif(UNIX AND NOT APPLE AND NOT RISCOS
+       endif()
      endif()
-   endif()
+-    CheckLibUnwind()
  
--  if(found_libunwind)
--    set(HAVE_LIBUNWIND_H TRUE)
--  endif()
- endmacro()
+     if(HAVE_DBUS_DBUS_H)
+       list(APPEND SOURCE_FILES "${SDL2_SOURCE_DIR}/src/core/linux/SDL_dbus.c")