diff options
author | Martin Stolpe <martinstolpe@gmail.com> | 2015-06-10 16:28:26 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-06-28 09:44:17 +0100 |
commit | e118d980dab4a0872fe232c17a2305e899b48b87 (patch) | |
tree | 3b0b3293ac9d69d4edd1a86a7561fbb4db07baa1 /meta | |
parent | 45d0819dafd5ad46f98ba45f47f24cd8111e22c9 (diff) | |
download | poky-e118d980dab4a0872fe232c17a2305e899b48b87.tar.gz |
ncurses: fix native builds when host has gcc5
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
(From OE-Core rev: 3a5435b371c84ec28b6936b8c8fa6541a592d061)
Signed-off-by: Martin Stolpe <martin.stolpe@gmail.com>
Signed-off-by: Joshua Lock <joshua.lock@collabora.co.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-core/ncurses/ncurses.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-core/ncurses/ncurses.inc b/meta/recipes-core/ncurses/ncurses.inc index 1b0f10c881..cd78873720 100644 --- a/meta/recipes-core/ncurses/ncurses.inc +++ b/meta/recipes-core/ncurses/ncurses.inc | |||
@@ -27,6 +27,7 @@ ENABLE_WIDEC ?= "true" | |||
27 | # for target objects. But it must be set manually for native and sdk | 27 | # for target objects. But it must be set manually for native and sdk |
28 | # builds. | 28 | # builds. |
29 | BUILD_CPPFLAGS += "-D_GNU_SOURCE" | 29 | BUILD_CPPFLAGS += "-D_GNU_SOURCE" |
30 | BUILD_CPPFLAGS_append_virtclass-native = " -P" | ||
30 | 31 | ||
31 | # natives don't generally look in base_libdir | 32 | # natives don't generally look in base_libdir |
32 | base_libdir_class-native = "${libdir}" | 33 | base_libdir_class-native = "${libdir}" |