summaryrefslogtreecommitdiffstats
path: root/package/libedit/libedit.mk
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2013-07-31 14:12:35 -0300
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2013-07-31 19:14:56 +0200
commita3e7fc8e6592eb6b24adaad1f4c1dfdd28cd729d (patch)
tree96ce4af3f4279d4f9a026352321826ed2974654f /package/libedit/libedit.mk
parent07398f7b43af41a2af5e1b843415d0c9550d32c1 (diff)
downloadbuildroot-a3e7fc8e6592eb6b24adaad1f4c1dfdd28cd729d.tar.gz
buildroot-a3e7fc8e6592eb6b24adaad1f4c1dfdd28cd729d.zip
libedit: really needs wchar support
wctype.h is always included, even in configure tests. Fixes: http://autobuild.buildroot.net/results/ed8/ed85b9d688ad8389895e3ecd7a6a18151efc328d/ Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/libedit/libedit.mk')
-rw-r--r--package/libedit/libedit.mk10
1 files changed, 3 insertions, 7 deletions
diff --git a/package/libedit/libedit.mk b/package/libedit/libedit.mk
index 6769fdc2a8..0ff418ac7c 100644
--- a/package/libedit/libedit.mk
+++ b/package/libedit/libedit.mk
@@ -12,6 +12,9 @@ LIBEDIT_DEPENDENCIES = ncurses
# We're patching configure.ac
LIBEDIT_AUTORECONF = YES
+# Doesn't really support !wchar, but support is disabled otherwise
+LIBEDIT_CONF_OPT += --enable-widec
+
# Note: libbsd required for *vis functions, but works only with a toolchain
# with __progname; otherwise, some features are disabled, as if libbsd was
# missing entirely.
@@ -19,11 +22,4 @@ ifeq ($(BR2_PACKAGE_LIBBSD),y)
LIBEDIT_DEPENDENCIES += libbsd
endif
-# Wide-char support is not autodetected by configure, we have to help a bit.
-ifeq ($(BR2_TOOLCHAIN_EXTERNAL_WCHAR),y)
-LIBEDIT_CONF_OPT += --enable-widec
-else
-LIBEDIT_CONF_OPT += --disable-widec
-endif
-
$(eval $(autotools-package))
OpenPOWER on IntegriCloud