mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-05-17 22:24:58 +00:00
libsdl: Stick to C17 dialect
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>
This commit is contained in:
parent
4dc29cb1b0
commit
6996418dc5
@ -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 \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user