We want the wide character functions from the ncurses header. Unfortunately it doesn't provide them by default, but only if either: * NCURSES_WIDECHAR is defined (for ncurses 20111030 and up) * _XOPEN_SOURCE/_XOPEN_SOURCE_EXTENDED are suitably defined
So far we have been implicitly relying on the latter, because for GNU libc when we define _GNU_SOURCE this causes libc to define the _XOPEN_SOURCE macros for us. Unfortunately this doesn't work on all libcs, because some (like musl libc) do not define _XOPEN_SOURCE when _GNU_SOURCE is defined. Signed-off-by: Khem Raj <raj.k...@gmail.com> --- meta-oe/recipes-graphics/libyui/libyui-ncurses_4.0.0.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta-oe/recipes-graphics/libyui/libyui-ncurses_4.0.0.bb b/meta-oe/recipes-graphics/libyui/libyui-ncurses_4.0.0.bb index 333163deba..a3a4a15066 100644 --- a/meta-oe/recipes-graphics/libyui/libyui-ncurses_4.0.0.bb +++ b/meta-oe/recipes-graphics/libyui/libyui-ncurses_4.0.0.bb @@ -21,6 +21,8 @@ BBCLASSEXTEND = "nativesdk" EXTRA_OECMAKE += "-DCMAKE_BUILD_TYPE=RELWITHDEBINFO -DWERROR=OFF" +CXXFLAGS += "-DNCURSES_WIDECHAR" + do_configure_prepend () { cd ${S} if [ -e ${PKG_CONFIG_SYSROOT_DIR}${base_prefix}/usr/lib/libyui.so ]; then -- 2.30.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#89866): https://lists.openembedded.org/g/openembedded-devel/message/89866 Mute This Topic: https://lists.openembedded.org/mt/81070391/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-