diff options
author | Khem Raj <raj.khem@gmail.com> | 2025-08-21 12:58:38 +0200 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2025-09-01 08:30:56 -0700 |
commit | 8ade657e16a69c3bdff731d92b644184e7519010 (patch) | |
tree | 2bf6acb131a6c3f9629e970a28595bb5261a8e83 | |
parent | 766dfe511580a9e69f9ddca465b859404abdb060 (diff) | |
download | poky-8ade657e16a69c3bdff731d92b644184e7519010.tar.gz |
ncurses: Pin to C17 standard
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.
(From OE-Core rev: 2ee706f58a96f30904ac3d292c0ac532739c91ea)
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>
-rw-r--r-- | meta/recipes-core/ncurses/ncurses.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/recipes-core/ncurses/ncurses.inc b/meta/recipes-core/ncurses/ncurses.inc index 3b72f3efdd..5ef735fcf8 100644 --- a/meta/recipes-core/ncurses/ncurses.inc +++ b/meta/recipes-core/ncurses/ncurses.inc | |||
@@ -30,6 +30,10 @@ ENABLE_WIDEC ?= "true" | |||
30 | # _GNU_SOURCE is required for widec stuff and is not detected automatically | 30 | # _GNU_SOURCE is required for widec stuff and is not detected automatically |
31 | CPPFLAGS += "-D_GNU_SOURCE" | 31 | CPPFLAGS += "-D_GNU_SOURCE" |
32 | 32 | ||
33 | # Check if we still need it when next release (6.6) happens | ||
34 | CFLAGS += "-std=gnu17" | ||
35 | BUILD_CFLAGS += "-std=gnu17" | ||
36 | |||
33 | # natives don't generally look in base_libdir | 37 | # natives don't generally look in base_libdir |
34 | base_libdir:class-native = "${libdir}" | 38 | base_libdir:class-native = "${libdir}" |
35 | 39 | ||