]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
ncurses: Pin to C17 standard
authorKhem Raj <raj.khem@gmail.com>
Wed, 19 Mar 2025 08:16:04 +0000 (01:16 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 19 Mar 2025 09:47:36 +0000 (09:47 +0000)
Newer snapshots of ncurses have the fixes but they are many needed to get
C23 going. Until next release lets stick with C17 even while GCC 15 switches
to C23 defaults.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/ncurses/ncurses.inc

index 3f93550cf99fa9d6f5e0e88d9b5fed0a2fa48d3d..1e9ec38ceac00fe18a83dd08cf5510be636ce591 100644 (file)
@@ -28,6 +28,9 @@ ENABLE_WIDEC ?= "true"
 # _GNU_SOURCE is required for widec stuff and is not detected automatically
 CPPFLAGS += "-D_GNU_SOURCE"
 
+# Check if we still need it when next release (6.6) happens
+CFLAGS += "-std=gnu17"
+
 # natives don't generally look in base_libdir
 base_libdir:class-native = "${libdir}"