[Buildroot] [git commit] libgsasl: add mandatory dependency on wchar

Peter Korsgaard peter at korsgaard.com
Wed May 2 19:34:25 UTC 2018

commit: https://git.buildroot.net/buildroot/commit/?id=00d40a4f29eafaded4cc530ab688a74162f21fa4
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

libgsasl needs wctomb, if not available it will define it to
rpl_wctomb. However, as there is no rpl_wctomb implementation, the .so
ends up with an undefined reference to wctomb.

This will cause linker errors for packages trying to use it such as
undefined reference to `wctomb'

 - http://autobuild.buildroot.net/results/1bc7cb9a2dd1af746c78f3150528206b7256e40f

Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
 package/libgsasl/Config.in | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/package/libgsasl/Config.in b/package/libgsasl/Config.in
index 5181386272..228f882377 100644
--- a/package/libgsasl/Config.in
+++ b/package/libgsasl/Config.in
@@ -1,5 +1,6 @@
 	bool "libgsasl"
+	depends on BR2_USE_WCHAR
 	  Simple Authentication and Security Layer framework Library.
 	  GNU SASL is an implementation of the Simple Authentication and
@@ -9,3 +10,6 @@ config BR2_PACKAGE_LIBGSASL
 	  against servers.
+comment "libgsasl needs a toolchain w/ wchar"
+	depends on !BR2_USE_WCHAR

More information about the buildroot mailing list