]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
ncurses: Pin to C17 standard
authorKhem Raj <raj.khem@gmail.com>
Thu, 21 Aug 2025 10:58:38 +0000 (12:58 +0200)
committerSteve Sakoman <steve@sakoman.com>
Tue, 26 Aug 2025 20:08:52 +0000 (13:08 -0700)
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.

For scarthgap also add it in BUILD_CFLAGS.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-core/ncurses/ncurses.inc

index 3b72f3efdd6758514c5f62319affdce632f6bb15..5ef735fcf8ad5e59b9ffec64c951f3452e0249d5 100644 (file)
@@ -30,6 +30,10 @@ 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"
+BUILD_CFLAGS += "-std=gnu17"
+
 # natives don't generally look in base_libdir
 base_libdir:class-native = "${libdir}"