iconv: disallow selection when BR2_ENABLE_LOCALE is enabled
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 15 May 2010 07:19:24 +0000 (09:19 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 20 May 2010 20:34:28 +0000 (22:34 +0200)
A C library compiled with locale support already has an iconv()
implementation. In that case, libiconv is useless. Therefore, disallow
the selection of libiconv when the configuration says that the
toolchain has locale support.

This fixes build issues similar to the one we had with gettext:
libiconv headers are installed, but -liconv is not added because the
./configure script detects that the C library supports iconv.

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

index b6009444fc71fe5c2e78dafb6bfecad0b0f53b12..ee4fd6201194b7f562aa135534f7d5ed8ae2efd5 100644 (file)
@@ -1,5 +1,6 @@
 config BR2_PACKAGE_LIBICONV
        bool "libiconv"
+       depends on !BR2_ENABLE_LOCALE
        help
          unicode conversion library