summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/ncurses
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2024-02-20 17:58:19 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-02-21 22:20:10 +0000
commit8112d617203cff56652d993c265797ba76687696 (patch)
tree912cbafe08044ca64c6f73ea738b4a0634abdf12 /meta/recipes-core/ncurses
parentc2e742e2be1fbad7a21435b825c964dd6052d7a5 (diff)
downloadpoky-8112d617203cff56652d993c265797ba76687696.tar.gz
ncurses: Always pass -D_GNU_SOURCE
So far it was assumed that it was detected ok for target recipe but actually it ends up with warnings and build moves on, however with gcc-14 these warnings are treated as errors and we see the problem even with target recipes. (From OE-Core rev: da381fb3d9dcd0e66bc3b48bdfde95cd29f0c654) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/ncurses')
-rw-r--r--meta/recipes-core/ncurses/ncurses.inc6
1 files changed, 2 insertions, 4 deletions
diff --git a/meta/recipes-core/ncurses/ncurses.inc b/meta/recipes-core/ncurses/ncurses.inc
index 367f3b19f4..761b6a3d31 100644
--- a/meta/recipes-core/ncurses/ncurses.inc
+++ b/meta/recipes-core/ncurses/ncurses.inc
@@ -27,10 +27,8 @@ EXTRASITECONFIG = "CFLAGS='${CFLAGS} -I${SYSROOT_DESTDIR}${includedir}'"
27# TODO: remove this variable when widec is supported in every setup? 27# TODO: remove this variable when widec is supported in every setup?
28ENABLE_WIDEC ?= "true" 28ENABLE_WIDEC ?= "true"
29 29
30# _GNU_SOURCE is required for widec stuff and is detected automatically 30# _GNU_SOURCE is required for widec stuff and is not detected automatically
31# for target objects. But it must be set manually for native and sdk 31CPPFLAGS += "-D_GNU_SOURCE"
32# builds.
33BUILD_CPPFLAGS += "-D_GNU_SOURCE"
34 32
35# natives don't generally look in base_libdir 33# natives don't generally look in base_libdir
36base_libdir:class-native = "${libdir}" 34base_libdir:class-native = "${libdir}"