aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-01-30 15:29:55 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-01-30 15:29:55 +0000
commit0e8727d93b963d13c511d39199043c2c316031c2 (patch)
tree93059bd5233b5293820857c09f8c528b927e3c14 /libbb
parent2d604581ef7bf34bd723422402cd38d9d6c71162 (diff)
downloadbusybox-0e8727d93b963d13c511d39199043c2c316031c2.tar.gz
- make linking against libcrypt optional by looking if pw_encrypt() or
correct_password() is configured. Fixes allnoconfig pulling in -lcrypt.
Diffstat (limited to 'libbb')
-rw-r--r--libbb/Makefile.in10
1 files changed, 8 insertions, 2 deletions
diff --git a/libbb/Makefile.in b/libbb/Makefile.in
index bb3790a58..6be0089a6 100644
--- a/libbb/Makefile.in
+++ b/libbb/Makefile.in
@@ -13,7 +13,7 @@ LIBBB-n:=
LIBBB-y:= \
bb_asprintf.c ask_confirmation.c change_identity.c chomp.c \
compare_string_array.c concat_path_file.c copy_file.c copyfd.c \
- correct_password.c create_icmp_socket.c create_icmp6_socket.c \
+ create_icmp_socket.c create_icmp6_socket.c \
device_open.c dump.c error_msg.c error_msg_and_die.c find_mount_point.c \
find_pid_by_name.c find_root_device.c fgets_str.c full_read.c \
full_write.c get_last_path_component.c get_line_from_file.c \
@@ -23,7 +23,7 @@ LIBBB-y:= \
make_directory.c mode_string.c mtab.c mtab_file.c \
obscure.c parse_mode.c parse_number.c perror_msg.c \
perror_msg_and_die.c print_file.c get_console.c \
- process_escape_sequence.c procps.c pw_encrypt.c qmodule.c \
+ process_escape_sequence.c procps.c qmodule.c \
read_package_field.c recursive_action.c remove_file.c \
restricted_shell.c run_parts.c run_shell.c safe_read.c safe_write.c \
safe_strncpy.c setup_environment.c simplify_path.c \
@@ -39,6 +39,12 @@ LIBBB-y:= \
# conditionally compiled objects:
LIBBB-$(CONFIG_FEATURE_SHADOWPASSWDS)+=pwd2spwd.c
LIBBB-$(CONFIG_FEATURE_MTAB_SUPPORT)+= mtab.c
+LIBBB-$(CONFIG_PASSWD)+= pw_encrypt.c
+LIBBB-$(CONFIG_SULOGIN)+= pw_encrypt.c
+LIBBB-$(CONFIG_FEATURE_HTTPD_AUTH_MD5)+= pw_encrypt.c
+LIBBB-$(CONFIG_VLOCK)+= correct_password.c
+LIBBB-$(CONFIG_SU)+= correct_password.c
+LIBBB-$(CONFIG_CONFIG_LOGIN)+= correct_password.c
LIBBB-y:=$(patsubst %,$(srcdir)/%,$(LIBBB-y))