Don't select BR2_ENABLE_LOCALE. Glib works without locale support in
toolchain, and packages shouldn't silently select toolchain options.
Only select libiconv if locale support isn't enabled.
config BR2_PACKAGE_LIBGLIB2
bool "libglib2"
- select BR2_ENABLE_LOCALE
select BR2_PACKAGE_GETTEXT
select BR2_PACKAGE_LIBINTL
- select BR2_PACKAGE_LIBICONV
+ select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
select BR2_PACKAGE_PKGCONFIG
help
Low-level core library that forms the basis of GTK+ and GNOME.
LIBGLIB2_CONF_OPT = --enable-shared \
--enable-static $(DISABLE_NLS)
-LIBGLIB2_DEPENDENCIES = uclibc gettext libintl libiconv pkgconfig
+LIBGLIB2_DEPENDENCIES = uclibc gettext libintl pkgconfig
+
+ifneq ($(BR2_ENABLE_LOCALE),y)
+LIBGLIB2_DEPENDENCIES+=libiconv
+endif
$(eval $(call AUTOTARGETS,package,libglib2))