[Buildroot] [PATCH] ncurses: fix wide-char enabled compilation for noMMU targets
Khem Raj
raj.khem at gmail.com
Thu Aug 4 06:47:51 UTC 2016
> On Jul 31, 2016, at 1:28 AM, Waldemar Brodkorb <wbx at openadk.org> wrote:
>
> For noMMU targets -D_XOPEN_SOURCE_EXTENDED must be explicitely
> passed to the preprocessor to allow cchar_t usage.
>
> Fixes:
> http://autobuild.buildroot.net/results/5bb34ff490c70eea5e4fb497e5228ca1319fffdc/
> http://autobuild.buildroot.net/results/8ba1410ed3ffb4954ccc4b7c3996d1839d677bef/
> http://autobuild.buildroot.net/results/26ee52ad549b7ef75c9ce4b2eae94f9312cea775/
>
> Signed-off-by: Waldemar Brodkorb <wbx at openadk.org>
> ---
> package/ncurses/Config.in | 2 --
> package/ncurses/ncurses.mk | 4 ++++
> 2 files changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/package/ncurses/Config.in b/package/ncurses/Config.in
> index 44713f9..8c8acde 100644
> --- a/package/ncurses/Config.in
> +++ b/package/ncurses/Config.in
> @@ -13,8 +13,6 @@ if BR2_PACKAGE_NCURSES
> config BR2_PACKAGE_NCURSES_WCHAR
> bool "enable wide char support"
> depends on BR2_USE_WCHAR
> - # Build broken @ curses.priv.h with bad declarations
> - depends on !(BR2_bfin && BR2_BINFMT_FLAT)
> help
> Enable wide char & UTF-8 support in ncurses libraries
>
> diff --git a/package/ncurses/ncurses.mk b/package/ncurses/ncurses.mk
> index bef57c5..412f548 100644
> --- a/package/ncurses/ncurses.mk
> +++ b/package/ncurses/ncurses.mk
> @@ -57,8 +57,12 @@ NCURSES_LIBS-$(BR2_PACKAGE_NCURSES_TARGET_FORM) += form
>
> ifeq ($(BR2_PACKAGE_NCURSES_WCHAR),y)
> NCURSES_CONF_OPTS += --enable-widec
> +# for noMMU we need to set it explicitely, fixes cchar_t problem
> +NCURSES_CPPFLAGS += -D_XOPEN_SOURCE_EXTENDED
May be you need to define NCURSES_WIDECHAR=1 instead
> NCURSES_LIB_SUFFIX = w
>
> +NCURSES_CONF_ENV += CPPFLAGS="$(NCURSES_CPPFLAGS)"
> +
> define NCURSES_LINK_LIBS_STATIC
> for lib in $(NCURSES_LIBS-y:%=lib%); do \
> ln -sf $${lib}$(NCURSES_LIB_SUFFIX).a \
> --
> 1.7.10.4
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160803/f5361583/attachment.asc>
More information about the buildroot
mailing list