* [Buildroot] [PATCH] libedit: really needs wchar support
@ 2013-07-31 16:55 Gustavo Zacarias
2013-07-31 17:08 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Gustavo Zacarias @ 2013-07-31 16:55 UTC (permalink / raw)
To: buildroot
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>
---
package/libedit/Config.in | 4 ++++
package/libedit/libedit.mk | 7 -------
2 files changed, 4 insertions(+), 7 deletions(-)
diff --git a/package/libedit/Config.in b/package/libedit/Config.in
index 4747a38..c8fcf40 100644
--- a/package/libedit/Config.in
+++ b/package/libedit/Config.in
@@ -1,6 +1,7 @@
config BR2_PACKAGE_LIBEDIT
bool "libedit"
select BR2_PACKAGE_NCURSES
+ depends on BR2_USE_WCHAR
help
The editline library (from BSD) provides generic line editing
and history functions. It slightly resembles GNU readline.
@@ -12,3 +13,6 @@ config BR2_PACKAGE_LIBEDIT
in Buildroot as it makes it much simpler than using the upstream
sources which require pmake:
http://www.thrysoee.dk/editline/
+
+comment "libedit requires a toolchain with WCHAR support"
+ depends on !BR2_USE_WCHAR
diff --git a/package/libedit/libedit.mk b/package/libedit/libedit.mk
index 6769fdc..c1e8cc7 100644
--- a/package/libedit/libedit.mk
+++ b/package/libedit/libedit.mk
@@ -19,11 +19,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))
--
1.8.1.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] libedit: really needs wchar support
2013-07-31 16:55 [Buildroot] [PATCH] libedit: really needs wchar support Gustavo Zacarias
@ 2013-07-31 17:08 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2013-07-31 17:08 UTC (permalink / raw)
To: buildroot
Dear Gustavo Zacarias,
On Wed, 31 Jul 2013 13:55:57 -0300, Gustavo Zacarias wrote:
> 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>
> ---
> package/libedit/Config.in | 4 ++++
> package/libedit/libedit.mk | 7 -------
> 2 files changed, 4 insertions(+), 7 deletions(-)
As suggested by Yann on IRC, I'll wait for a version that adds a
--enable-widec to LIBEDIT_CONF_OPT.
Thanks!
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-07-31 17:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-31 16:55 [Buildroot] [PATCH] libedit: really needs wchar support Gustavo Zacarias
2013-07-31 17:08 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox