[Buildroot] [PATCH 1/2] binutils: troubleshoot native binutils building (add WCHAR dependency)
Alexey Brodkin
Alexey.Brodkin at synopsys.com
Mon Aug 18 22:03:26 UTC 2014
binutils starting at least from 2.23 when build for target require uClibc
configured with UCLIBC_HAS_WCHAR otherwise:
==========
libtool: link: [...] -o as-new [...]
read.o: In function `read_symbol_name':
read.c:(.text+0x3634): undefined reference to `mbstowcs'
collect2: error: ld returned 1 exit status
==========
because "mbstowcs" won't be compiled in.
Signed-off-by: Alexey Brodkin <abrodkin at synopsys.com>
Cc: Anton Kolesov <akolesov at synopsys.com>
Cc: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
---
package/binutils/Config.in | 1 +
1 file changed, 1 insertion(+)
diff --git a/package/binutils/Config.in b/package/binutils/Config.in
index 44e7ae0..d59a631 100644
--- a/package/binutils/Config.in
+++ b/package/binutils/Config.in
@@ -2,6 +2,7 @@ config BR2_PACKAGE_BINUTILS
bool "binutils"
select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE
depends on !BR2_aarch64 && !BR2_nios2
+ depends on BR2_USE_WCHAR
help
Install binutils on the target
--
1.9.3
More information about the buildroot
mailing list