@@ -40,7 +40,9 @@ BINCONFIG = "${bindir}/sdl-config"
inherit autotools lib_package binconfig-disabled pkgconfig
CVE_PRODUCT = "simple_directmedia_layer sdl"
-
+# GCC15/C23 results in following errors
+# ../SDL-1.2.15/src/video/Xext/XME/xme.c:218:5: error: initialization of 'int (*)(Display *, XExtCodes *)' from incompatible pointer type 'int (*)(void)' [-Wincompatible-pointer-types]
+CFLAGS += "-std=c17"
EXTRA_OECONF = "--disable-static --enable-cdrom --enable-threads --enable-timers \
--enable-file --disable-oss --disable-esd --disable-arts \
--disable-diskaudio --disable-nas \
GCC-15 defaults to C23 and this component is almost dead. it still is needed by few other recipes so keep it going but ideally removing it might be a better thing to do in near future Signed-off-by: Khem Raj <raj.khem@gmail.com> --- meta-oe/recipes-graphics/libsdl/libsdl_1.2.15.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)