aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-07-04 12:28:00 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-07-05 01:27:24 +0200
commitd989cd7344c85894bb25c6e580e6b3a378867b3b (patch)
tree01c8f91b212ef642b395ab5537d021ca80d7fcbf
parentc6882af6364819f38db7c67093b970778eea2170 (diff)
downloadbuildroot-d989cd7344c85894bb25c6e580e6b3a378867b3b.tar.gz
buildroot-d989cd7344c85894bb25c6e580e6b3a378867b3b.tar.bz2
coreutils: use the new gettext logic
This commit uses TARGET_NLS_DEPENDENCIES instead of existing logic to add the dependency on gettext. To keep the existing behavior, we keep the --with-libintl-prefix option, but only when a libintl library is effectively provided by gettext. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/coreutils/coreutils.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/package/coreutils/coreutils.mk b/package/coreutils/coreutils.mk
index 14b952f5a1..6a8a31b061 100644
--- a/package/coreutils/coreutils.mk
+++ b/package/coreutils/coreutils.mk
@@ -77,10 +77,11 @@ else
COREUTILS_CONF_OPTS += --disable-xattr
endif
+COREUTILS_DEPENDENCIES += $(TARGET_NLS_DEPENDENCIES)
+
# It otherwise fails to link properly, not mandatory though
-ifeq ($(BR2_PACKAGE_GETTEXT),y)
+ifeq ($(BR2_PACKAGE_GETTEXT_PROVIDES_LIBINTL),y)
COREUTILS_CONF_OPTS += --with-libintl-prefix=$(STAGING_DIR)/usr
-COREUTILS_DEPENDENCIES += gettext
endif
ifeq ($(BR2_PACKAGE_GMP),y)