summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/ncurses/ncurses.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/package/ncurses/ncurses.mk b/package/ncurses/ncurses.mk
index 9805113802..4bba8f1b3b 100644
--- a/package/ncurses/ncurses.mk
+++ b/package/ncurses/ncurses.mk
@@ -45,8 +45,12 @@ ifneq ($(BR2_ENABLE_DEBUG),y)
NCURSES_CONF_OPT += --without-debug
endif
+# 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
- $(MAKE1) -C $(@D) DESTDIR=$(STAGING_DIR)
+ $(MAKE1) -C $(@D) DESTDIR=$(STAGING_DIR) sources
+ rm -rf $(@D)/misc/pc-files
+ $(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR)
endef
ifneq ($(BR2_PREFER_STATIC_LIB),y)
OpenPOWER on IntegriCloud