libunistring: add wchar dependency
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 25 Nov 2014 21:33:10 +0000 (22:33 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 26 Nov 2014 20:51:41 +0000 (21:51 +0100)
Even though libunistring itself builds fine, its library contains
undefined references to wchar related functions, which are causing
link failures when the library is actually linked into an application.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/libunistring/Config.in

index ebb37d9794fbed338debffc56d2b35572409f084..88fc658035a30b24cac9cbbf5d11cc5a17037365 100644 (file)
@@ -1,8 +1,12 @@
 config BR2_PACKAGE_LIBUNISTRING
        bool "libunistring"
+       depends on BR2_USE_WCHAR
        help
          The libunistring library provides functions for manipulating
          Unicode strings and for manipulating C strings according to
          the Unicode standard.
 
          http://www.gnu.org/software/libunistring/
+
+comment "libunistring needs a toolchain w/ wchar"
+       depends on !BR2_USE_WCHAR