package/glibc: install locale utility only when BR2_PACKAGE_GLIBC_UTILS=y
authorPascal de Bruijn <p.debruijn@unilogic.nl>
Tue, 26 Nov 2019 14:59:03 +0000 (15:59 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 26 Nov 2019 21:36:17 +0000 (22:36 +0100)
Fixes: fb1ee93ca4378456774e1ae24fcf370417733a38
Signed-off-by: Pascal de Bruijn <p.debruijn@unilogic.nl>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/glibc/glibc.mk

index e366134026c25f5576bf8d897ff1059b6cf035f8..4dc87e2f279a129a83db47954e81c342db87be9d 100644 (file)
@@ -146,11 +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
+endif
 
 define GLIBC_INSTALL_TARGET_CMDS
        for libpattern in $(GLIBC_LIBS_LIB); do \