libbb: compile obscure() only if FEATURE_PASSWD_WEAK_CHECK=y
authorDenys Vlasenko <vda.linux@googlemail.com>
Thu, 4 Jan 2018 14:21:25 +0000 (15:21 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 4 Jan 2018 14:21:25 +0000 (15:21 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
libbb/Kbuild.src

index 6e6d71ad57f5ed8a1b1daa9907f681a02af6eb61..8c9ba8cca22c0e660e6bf00dbaa42e6c0632fbe1 100644 (file)
@@ -143,7 +143,8 @@ lib-$(CONFIG_DELGROUP) += update_passwd.o
 lib-$(CONFIG_DELUSER) += update_passwd.o
 
 lib-$(CONFIG_FTPD) += pw_encrypt.o correct_password.o
-lib-$(CONFIG_PASSWD) += pw_encrypt.o update_passwd.o obscure.o
+lib-$(CONFIG_PASSWD) += pw_encrypt.o update_passwd.o
+lib-$(CONFIG_FEATURE_PASSWD_WEAK_CHECK) += obscure.o
 lib-$(CONFIG_CHPASSWD) += pw_encrypt.o update_passwd.o
 lib-$(CONFIG_CRYPTPW) += pw_encrypt.o
 lib-$(CONFIG_MKPASSWD) += pw_encrypt.o