@@ -1,4 +1,4 @@
-From 6f1bd0a468f5c7b49dd63125aacd8af2dd8fd8da Mon Sep 17 00:00:00 2001
+From 0576cfd188ee7d4e1edabdc996c1692f6876ca54 Mon Sep 17 00:00:00 2001
From: Khem Raj <khem.raj@oss.qualcomm.com>
Date: Fri, 31 Jul 2026 02:25:45 -0700
Subject: [PATCH] cmake: Pass _GNU_SOURCE via CMAKE_REQUIRED_DEFINITIONS too
@@ -36,10 +36,10 @@ Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
1 file changed, 5 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
-index f7c1528..4381326 100644
+index eb286ca..f33f9ff 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
-@@ -122,6 +122,11 @@ set(SDL_CHECK_REQUIRED_LINK_OPTIONS "" CACHE STRING "Extra link options (for CMA
+@@ -116,6 +116,11 @@ set(SDL_CHECK_REQUIRED_LINK_OPTIONS "" CACHE STRING "Extra link options (for CMA
mark_as_advanced(SDL_CHECK_REQUIRED_INCLUDES SDL_CHECK_REQUIRED_LINK_OPTIONS)
string(APPEND CMAKE_REQUIRED_FLAGS " -D_GNU_SOURCE=1")
similarity index 97%
rename from meta-oe/recipes-graphics/libsdl3/libsdl3_3.4.20.bb
rename to meta-oe/recipes-graphics/libsdl3/libsdl3_3.4.22.bb
@@ -20,7 +20,7 @@ SRC_URI = "http://www.libsdl.org/release/SDL3-${PV}.tar.gz \
S = "${UNPACKDIR}/SDL3-${PV}"
-SRC_URI[sha256sum] = "f3bb06f55bed9557227a700af2ea62e49497ebdf58037732a731a5fb3ef8581f"
+SRC_URI[sha256sum] = "60311d7eb782ba4db8dcf29c01c25e04071973a464a31dd96016dcdbe3ec9427"
inherit cmake lib_package binconfig-disabled pkgconfig upstream-version-is-even
Upgrade to release 3.4.22: - Fixed getting an 8x8 swap chain for minimized windows with the GPU API on Windows - Fixed Vulkan framebuffer lookup on resolve textures in the GPU API - Scale the desktop mode for DPI unaware applications on Windows - Fixed the IME window not showing up for small text boxes on Windows - Fixed text input events using UTF-16 offsets instead of code point offsets on Windows - Fixed non-resizable windows being resized when moving to a display with a different DPI scaling on Windows - Fixed support for cursors using inverted (XOR) pixels on Windows - Use the current video mode for fullscreen desktop windows on KMSDRM - Use the largest refresh rate for fullscreen video modes on KMSDRM by default - Fixed getting refresh rate of 0 for high refresh rate video modes on KMSDRM and X11 - Fixed spurious relative motion during pending mouse warps on macOS - Fixed SDL_COPY_BLEND_PREMULTIPLIED when rendering geometry with the software renderer - Fixed color key matching for RGBX pixel formats - Fixed SDL_ReadSurfacePixel() on bitmap surfaces - Fixed rendering accented Latin-1 characters with the debug font - Fixed a rare infinite loop when intersecting lines and rectangles - Fixed drawing multiple lines when using the Direct3D9 renderer - Fixed Joy-Con charging grips showing up as Switch 2 Joy-Cons - Added sensor fusion support for the AYN Thor - Added HIDAPI support for the 8BitDo Ultimate 2C Wired Controller - Added support for the 8BitDo 2.4G Wireless Controller in Bluetooth mode - Added support for the Flydigi Vader 5S Pro in Bluetooth mode - Added trigger rumble support for the Flydigi Vader 4 and 5 Pro controllers - Fixed detecting the Apple TV remote menu button - Updated the Android build to support the latest gradle plugin - Fixed a 500 ms delay when changing fullscreen style on Android - Improved Android mouse event handling, especially relative mode - Fixed a number of rare crashes and exceptions on Android Signed-off-by: Leon Anavi <leon.anavi@konsulko.com> --- ...ake-Pass-_GNU_SOURCE-via-CMAKE_REQUIRED_DEFINITION.patch | 6 +++--- .../libsdl3/{libsdl3_3.4.20.bb => libsdl3_3.4.22.bb} | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) rename meta-oe/recipes-graphics/libsdl3/{libsdl3_3.4.20.bb => libsdl3_3.4.22.bb} (97%)