Skip to content

Commit a951381

Browse files
committed
sdl3: keep SDL3_test from linking against libunwind
SDL3's CheckLibUnwind cmake macro autodetects libunwind for the SDL3_test library and offers no option to disable it. On the buildbots libunwind is present in staging, so the test programs end up linked against it and packaging libsdl3-tests fails: Package libsdl3-tests is missing dependencies for the following libraries: libunwind-x86_64.so.8 libunwind.so.8 This aborts the whole sdl3 build before anything is staged, taking down every package depending on SDL3 or SDL2 (sdl2-compat, sdl2-image, sdl2-mixer, sdl3-image, sdl3-mixer, sdl3-doom, gzdoom, vice). Preseed the three detection cache variables to OFF so the result no longer depends on whether libunwind happens to be staged; it is only used for symbolised backtraces in test leak reports. Fixes: 51549da ("sdl3: add SDL3 3.4.10") Signed-off-by: Daniel Golle <daniel@makrotopia.org>
1 parent a022f83 commit a951381

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

libs/sdl3/Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
22

33
PKG_NAME:=sdl3
44
PKG_VERSION:=3.4.10
5-
PKG_RELEASE:=1
5+
PKG_RELEASE:=2
66

77
PKG_SOURCE:=SDL3-$(PKG_VERSION).tar.gz
88
PKG_SOURCE_URL:=https://github.com/libsdl-org/SDL/releases/download/release-$(PKG_VERSION)/
@@ -66,7 +66,10 @@ CMAKE_OPTIONS += \
6666
-DSDL_WAYLAND=ON \
6767
-DSDL_WAYLAND_LIBDECOR=OFF \
6868
-DSDL_WAYLAND_SHARED=ON \
69-
-DSDL_X11=OFF
69+
-DSDL_X11=OFF \
70+
-DLIBC_HAS_WORKING_LIBUNWIND=OFF \
71+
-DLIBUNWIND_HAS_WORKINGLIBUNWIND=OFF \
72+
-DPC_LIBUNWIND_HAS_WORKING_LIBUNWIND=OFF
7073

7174
define Package/libsdl3
7275
SECTION:=libs

0 commit comments

Comments
 (0)