summaryrefslogtreecommitdiffstats
path: root/package/util-linux/util-linux.mk
diff options
context:
space:
mode:
authorCarlos Santos <casantos@datacom.ind.br>2017-01-22 01:15:41 -0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-01-22 17:53:19 +1100
commit051fde24e47e92873ba36f5a692c1f6da78496d1 (patch)
tree013c1ea35bbaff3dc67c2e910b28855d195b064f /package/util-linux/util-linux.mk
parentf00a528ce68e24bb9f162416a5cf25bdc65fce20 (diff)
downloadbuildroot-051fde24e47e92873ba36f5a692c1f6da78496d1.tar.gz
buildroot-051fde24e47e92873ba36f5a692c1f6da78496d1.zip
Revert "util-linux: fix ncurses/wchar handling"
This reverts commit 5a18eabdf08564688761a9b2f35892d69d8f9a18. It did not take into account all the possible situations. A different fix will be provided in a forthcomming patch. Signed-off-by: Carlos Santos <casantos@datacom.ind.br> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/util-linux/util-linux.mk')
-rw-r--r--package/util-linux/util-linux.mk20
1 files changed, 10 insertions, 10 deletions
diff --git a/package/util-linux/util-linux.mk b/package/util-linux/util-linux.mk
index 414465cff6..51ece90b63 100644
--- a/package/util-linux/util-linux.mk
+++ b/package/util-linux/util-linux.mk
@@ -45,21 +45,21 @@ ifeq ($(BR2_PACKAGE_BUSYBOX),y)
UTIL_LINUX_DEPENDENCIES += busybox
endif
-ifeq ($(BR2_USE_WCHAR),y)
-UTIL_LINUX_CONF_OPTS += --enable-widechar
-else
-UTIL_LINUX_CONF_OPTS += --disable-widechar
-endif
-
-ifeq ($(BR2_PACKAGE_NCURSES_WCHAR),y)
+ifeq ($(BR2_PACKAGE_NCURSES),y)
UTIL_LINUX_DEPENDENCIES += ncurses
+ifeq ($(BR2_PACKAGE_NCURSES_WCHAR),y)
UTIL_LINUX_CONF_OPTS += --with-ncursesw
UTIL_LINUX_CONF_ENV += NCURSESW5_CONFIG=$(STAGING_DIR)/usr/bin/$(NCURSES_CONFIG_SCRIPTS)
-else ifeq ($(BR2_PACKAGE_NCURSES):$(BR2_USE_WCHAR),y:)
-UTIL_LINUX_DEPENDENCIES += ncurses
-UTIL_LINUX_CONF_OPTS += --without-ncursesw --with-ncurses
+else
+UTIL_LINUX_CONF_OPTS += --without-ncursesw --with-ncurses --disable-widechar
UTIL_LINUX_CONF_ENV += NCURSES5_CONFIG=$(STAGING_DIR)/usr/bin/$(NCURSES_CONFIG_SCRIPTS)
+endif
+else
+ifeq ($(BR2_USE_WCHAR),y)
+UTIL_LINUX_CONF_OPTS += --enable-widechar
else
+UTIL_LINUX_CONF_OPTS += --disable-widechar
+endif
UTIL_LINUX_CONF_OPTS += --without-ncursesw --without-ncurses
endif
OpenPOWER on IntegriCloud