summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>2012-11-01 14:35:55 (GMT)
committer Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2013-07-30 21:36:36 (GMT)
commitda8860e4da533bbe3d684354b37174adb0e23b98 (patch)
treebe1251ec0c1cee35d8fbcf109941f4e5207b632c
parent1c834dd1ce5d8b6eedb36126c878dd3f9dbbdb55 (diff)
downloadbuildroot-da8860e4da533bbe3d684354b37174adb0e23b98.tar.gz
buildroot-da8860e4da533bbe3d684354b37174adb0e23b98.tar.bz2
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>
-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 799833e..e63814f 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 d8a4e6f..c6c8467 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