util-linux: only needs gettext if locale is selected

Also add missing select in Config.in.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Arnout Vandecappelle (Essensium/Mind) 2012-11-01 15:35:55 +01:00 committed by Thomas Petazzoni
parent 1c834dd1ce
commit da8860e4da
2 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@ config BR2_PACKAGE_UTIL_LINUX
bool "util-linux"
depends on BR2_LARGEFILE
depends on BR2_USE_WCHAR
select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE
help
Various useful/essential linux libraries and utilities.

View File

@ -35,7 +35,7 @@ else
UTIL_LINUX_CONF_OPT += --without-ncurses
endif
ifeq ($(BR2_PACKAGE_GETTEXT),y)
ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
UTIL_LINUX_DEPENDENCIES += gettext
UTIL_LINUX_MAKE_OPT += LIBS=-lintl
endif