summaryrefslogtreecommitdiffstats
path: root/rules/host-ncurses.make
diff options
context:
space:
mode:
authorBernhard Walle <bernhard@bwalle.de>2015-05-02 14:42:39 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2015-05-03 21:18:06 +0200
commit55d09fbaa78c988670f7ba5d2d1e194d59de9ff3 (patch)
tree63a853732ae9a7fbe1dbee3ffad3bb4dcd93a2b8 /rules/host-ncurses.make
parent29f283e00deb41f05c1607fb9035489c4dbeb9c3 (diff)
downloadptxdist-55d09fbaa78c988670f7ba5d2d1e194d59de9ff3.tar.gz
ptxdist-55d09fbaa78c988670f7ba5d2d1e194d59de9ff3.tar.xz
host-ncurses: Fix build with gcc 5.1
The build of host-ncurses fails with following error: | In file included from ../ncurses/curses.priv.h:283:0, | from ../ncurses/lib_gen.c:19: | _16905.c:835:15: error: expected ')' before 'int' | ../include/curses.h:1594:56: note: in definition of macro 'mouse_trafo' | #define mouse_trafo(y,x,to_screen) wmouse_trafo(stdscr,y,x,to_screen) The problem is that the preprocessor emits additional line statements which ncurses isn't prepared for. The problem is described in the gcc 5 porting guide at https://gcc.gnu.org/gcc-5/porting_to.html. Adding the described -P option to gcc invocations fixes that issue. Signed-off-by: Bernhard Walle <bernhard@bwalle.de> [mol: use HOST_NCURSES_CPPFLAGS to add -P] Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/host-ncurses.make')
-rw-r--r--rules/host-ncurses.make2
1 files changed, 2 insertions, 0 deletions
diff --git a/rules/host-ncurses.make b/rules/host-ncurses.make
index 2218b7c9d..3d60d9ae8 100644
--- a/rules/host-ncurses.make
+++ b/rules/host-ncurses.make
@@ -25,6 +25,8 @@ HOST_NCURSES_CONF_OPT = \
$(HOST_AUTOCONF) \
$(NCURSES_AUTOCONF_SHARED)
+HOST_NCURSES_CPPFLAGS := -P
+
# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------