Index: tmp_buildroot-2016.05/package/ncurses/ncurses.mk =================================================================== --- tmp_buildroot-2016.05.orig/package/ncurses/ncurses.mk +++ tmp_buildroot-2016.05/package/ncurses/ncurses.mk @@ -112,6 +112,8 @@ ifneq ($(BR2_ENABLE_DEBUG),y) NCURSES_CONF_OPTS += --without-debug endif +NCURSES_CONF_OPTS += CFLAGS="$(CFLAGS) $(DEFAULT_CFLAGS_LIB)" LDFLAGS="$(LDFLAGS) $(DEFAULT_LDFLAGS_LIB)" + # ncurses breaks with parallel build, but takes quite a while to # build single threaded. Work around it similar to how Gentoo does define NCURSES_BUILD_CMDS