package/glibc: install locale utility when NLS is enabled
authorPascal de Bruijn <p.debruijn@unilogic.nl>
Tue, 26 Nov 2019 08:55:41 +0000 (09:55 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 26 Nov 2019 11:51:59 +0000 (12:51 +0100)
Signed-off-by: Pascal de Bruijn <p.debruijn@unilogic.nl>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/glibc/Config.in
package/glibc/glibc.mk

index 323767fc8a4209e767406ef1eb1c4a2081875389..b8c2573d96e486b9ee9bf5cacc2cb623fed04826 100644 (file)
@@ -14,7 +14,7 @@ config BR2_PACKAGE_GLIBC_UTILS
        depends on BR2_PACKAGE_BASH
        help
          Enabling this option will compile and install the getconf,
-         ldconfig and ldd glibc utilities for the target.
+         ldconfig, ldd and locale glibc utilities for the target.
 
 comment "glibc utilities need bash"
        depends on !BR2_PACKAGE_BASH
index 5da0b064a2207bb767cd6bca0f5b26f0147e57ab..e366134026c25f5576bf8d897ff1059b6cf035f8 100644 (file)
@@ -146,7 +146,10 @@ endif
 ifeq ($(BR2_PACKAGE_GLIBC_UTILS),y)
 GLIBC_TARGET_UTILS_USR_BIN = posix/getconf elf/ldd
 GLIBC_TARGET_UTILS_SBIN = elf/ldconfig
+endif
 
+ifeq ($(BR2_SYSTEM_ENABLE_NLS),y)
+GLIBC_TARGET_UTILS_USR_BIN += locale/locale
 endif
 
 define GLIBC_INSTALL_TARGET_CMDS