summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2009-08-30 22:01:23 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2009-08-30 22:08:21 +0200
commit014df317d47c17c8b98518bfd5062390ff35e5cf (patch)
treedaba4ab72db5ef9eb42736e95df181ffa0addf50 /package
parent621e8726f927642359adec4b0916ca5c8c9fec22 (diff)
downloadbuildroot-novena-014df317d47c17c8b98518bfd5062390ff35e5cf.tar.gz
buildroot-novena-014df317d47c17c8b98518bfd5062390ff35e5cf.zip
util-linux: fix build with locale in toolchain
Closes #529. util-linux needs to link with libintl when locale support is available / requested in the toolchain, similar to how it is done for avahi. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package')
-rw-r--r--package/util-linux/Config.in2
-rw-r--r--package/util-linux/util-linux.mk11
2 files changed, 10 insertions, 3 deletions
diff --git a/package/util-linux/Config.in b/package/util-linux/Config.in
index 227d74e71..f8af6bb4f 100644
--- a/package/util-linux/Config.in
+++ b/package/util-linux/Config.in
@@ -1,5 +1,7 @@
config BR2_PACKAGE_UTIL-LINUX
bool "util-linux"
+ select BR2_PACKAGE_GETTEXT if BR2_ENABLE_LOCALE
+ select BR2_PACKAGE_LIBINTL if BR2_ENABLE_LOCALE
help
Various useful/essential Linux utilities.
diff --git a/package/util-linux/util-linux.mk b/package/util-linux/util-linux.mk
index c9bae1628..ad5a62ccb 100644
--- a/package/util-linux/util-linux.mk
+++ b/package/util-linux/util-linux.mk
@@ -18,6 +18,11 @@ else
UTIL-LINUX_SCHED_UTILS:=--disable-schedutils
endif
+ifeq ($(BR2_PACKAGE_LIBINTL),y)
+UTIL-LINUX_DEPENDENCIES += libintl
+UTIL-LINUX_MAKE_OPT = LIBS=-lintl
+endif
+
$(DL_DIR)/$(UTIL-LINUX_SOURCE):
$(call DOWNLOAD,$(UTIL-LINUX_SITE),$(UTIL-LINUX_SOURCE))
@@ -56,6 +61,7 @@ $(UTIL-LINUX_BINARY): $(UTIL-LINUX_DIR)/.configured
ARCH=$(ARCH) \
CC=$(TARGET_CC) \
OPT="$(TARGET_CFLAGS)" \
+ $(UTIL-LINUX_MAKE_OPT) \
HAVE_SLANG="NO"
$(UTIL-LINUX_TARGET_BINARY): $(UTIL-LINUX_BINARY)
@@ -66,11 +72,10 @@ $(UTIL-LINUX_TARGET_BINARY): $(UTIL-LINUX_BINARY)
#If both util-linux and busybox are selected, make certain util-linux
#wins the fight over who gets to have their utils actually installed
ifeq ($(BR2_PACKAGE_BUSYBOX),y)
-util-linux: uclibc busybox $(UTIL-LINUX_TARGET_BINARY)
-else
-util-linux: uclibc $(UTIL-LINUX_TARGET_BINARY)
+UTIL-LINUX_DEPENDENCIES = busybox $(UTIL-LINUX_DEPENDENCIES)
endif
+util-linux: uclibc $(UTIL-LINUX_DEPENDENCIES) $(UTIL-LINUX_TARGET_BINARY)
util-linux-source: $(DL_DIR)/$(UTIL-LINUX_SOURCE)