summaryrefslogtreecommitdiffstats
path: root/rules/ncurses.make
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2019-07-04 09:19:40 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2019-07-04 09:19:42 +0200
commit13f3274359d1bb8a4d5d2510328da62bf83205e3 (patch)
treeef107447336f871794c3fa6953732914c59c83a9 /rules/ncurses.make
parentec87da2afc85eaa2a7cdee32292043bfde36b087 (diff)
downloadptxdist-13f3274359d1bb8a4d5d2510328da62bf83205e3.tar.gz
ptxdist-13f3274359d1bb8a4d5d2510328da62bf83205e3.tar.xz
ncurses: order configure options
Turn NCURSES_AUTOCONF_SHARED into a macro with options to order the configure options properly. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/ncurses.make')
-rw-r--r--rules/ncurses.make11
1 files changed, 7 insertions, 4 deletions
diff --git a/rules/ncurses.make b/rules/ncurses.make
index ba5b9f179..b8671ba4c 100644
--- a/rules/ncurses.make
+++ b/rules/ncurses.make
@@ -33,14 +33,18 @@ NCURSES_CONF_ENV := \
$(CROSS_ENV) \
TIC_PATH="$(PTXDIST_SYSROOT_HOST)/bin/tic"
+NCURSES_SHARED_TARGET := y
+NCURSES_SHARED_HOST :=
+
# NOTE: reentrant enables opaque, which breaks other packages
# pthread enables reentrant, so don't enable it either
-NCURSES_AUTOCONF_SHARED := \
+NCURSES_AUTOCONF_SHARED = \
--without-ada \
--without-cxx \
--without-cxx-binding \
--enable-db-install \
--without-manpages \
+ --$(call ptx/wow,$(1))-progs \
--without-tack \
--without-tests \
--with-curses-h \
@@ -48,6 +52,7 @@ NCURSES_AUTOCONF_SHARED := \
--enable-pc-files \
--enable-mixed-case \
--without-libtool \
+ --$(call ptx/wwo,$(1))-shared \
--with-normal \
--without-debug \
--without-profile \
@@ -82,9 +87,7 @@ NCURSES_AUTOCONF_SHARED := \
NCURSES_CONF_OPT := \
$(CROSS_AUTOCONF_USR) \
- $(NCURSES_AUTOCONF_SHARED) \
- --without-progs \
- --with-shared
+ $(call NCURSES_AUTOCONF_SHARED,NCURSES_SHARED_TARGET)
# ----------------------------------------------------------------------------
# Install