summaryrefslogtreecommitdiffstats
path: root/package/util-linux
diff options
context:
space:
mode:
authorArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>2012-11-01 15:35:55 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2013-07-30 23:36:36 +0200
commitda8860e4da533bbe3d684354b37174adb0e23b98 (patch)
treebe1251ec0c1cee35d8fbcf109941f4e5207b632c /package/util-linux
parent1c834dd1ce5d8b6eedb36126c878dd3f9dbbdb55 (diff)
downloadbuildroot-da8860e4da533bbe3d684354b37174adb0e23b98.tar.gz
buildroot-da8860e4da533bbe3d684354b37174adb0e23b98.zip
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>
Diffstat (limited to 'package/util-linux')
-rw-r--r--package/util-linux/Config.in1
-rw-r--r--package/util-linux/util-linux.mk2
2 files changed, 2 insertions, 1 deletions
diff --git a/package/util-linux/Config.in b/package/util-linux/Config.in
index 799833e9b9..e63814f716 100644
--- a/package/util-linux/Config.in
+++ b/package/util-linux/Config.in
@@ -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.
diff --git a/package/util-linux/util-linux.mk b/package/util-linux/util-linux.mk
index d8a4e6f3f0..c6c8467eef 100644
--- a/package/util-linux/util-linux.mk
+++ b/package/util-linux/util-linux.mk
@@ -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
OpenPOWER on IntegriCloud