#19749: trunk compiling fails at ncurses host-compile
-----------------------------+----------------------------------
  Reporter:  daniel.petre@…  |      Owner:  developers
      Type:  defect          |     Status:  closed
  Priority:  high            |  Milestone:  Chaos Calmer (trunk)
 Component:  base system     |    Version:  Trunk
Resolution:  fixed           |   Keywords:  r45810,ncurses
-----------------------------+----------------------------------

Comment (by StMartin81):

 Sorry I didn't leave a reply: I was able to fix the compilation issue like
 this:


 {{{
  meta/recipes-core/ncurses/ncurses.inc | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

 diff --git a/meta/recipes-core/ncurses/ncurses.inc b/meta/recipes-
 core/ncurses/ncurses.inc
 index 10f7dd1..a7a265d 100644
 }}}


 {{{
 --- a/meta/recipes-core/ncurses/ncurses.inc
 +++ b/meta/recipes-core/ncurses/ncurses.inc
 @@ -26,7 +26,7 @@ ENABLE_WIDEC ?= "true"
  # _GNU_SOURCE is required for widec stuff and is detected automatically
  # for target objects.  But it must be set manually for native and sdk
  # builds.
 -BUILD_CPPFLAGS += "-D_GNU_SOURCE"
 +BUILD_CPPFLAGS += "-D_GNU_SOURCE -P"

  # natives don't generally look in base_libdir
  base_libdir_class-native = "${libdir}"
 }}}

 Problem was that the ncurses build system relies on gcc not inserting any
 new lines. The ''BUILD_CPPFLAGS += -P'' prevents gcc from inserting new
 lines.

--
Ticket URL: <https://dev.openwrt.org/ticket/19749#comment:11>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to