]> code.ossystems Code Review - openembedded-core.git/commitdiff
ncurses: fix native builds when host has gcc5
authorMartin Stolpe <martinstolpe@gmail.com>
Wed, 10 Jun 2015 14:28:26 +0000 (16:28 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 28 Jun 2015 08:42:02 +0000 (09:42 +0100)
GCC"s preprocessor starts to add newlines which are not
handled properly by ncurses build system startin from
version 5.0.

See also: https://bugzilla.yoctoproject.org/show_bug.cgi?id=7870

Signed-off-by: Martin Stolpe <martin.stolpe@gmail.com>
Signed-off-by: Joshua Lock <joshua.lock@collabora.co.uk>
meta/recipes-core/ncurses/ncurses.inc

index 1b0f10c881992d86bb793a714aa93061b9536a79..cd788737209b2b438614c334b23e6178541cb32e 100644 (file)
@@ -27,6 +27,7 @@ ENABLE_WIDEC ?= "true"
 # for target objects.  But it must be set manually for native and sdk
 # builds.
 BUILD_CPPFLAGS += "-D_GNU_SOURCE"
+BUILD_CPPFLAGS_append_virtclass-native = " -P"
 
 # natives don't generally look in base_libdir
 base_libdir_class-native = "${libdir}"