Patch from Shaun Jackman to make loop.c build only when needed.
authorRob Landley <rob@landley.net>
Tue, 21 Mar 2006 16:22:19 +0000 (16:22 -0000)
committerRob Landley <rob@landley.net>
Tue, 21 Mar 2006 16:22:19 +0000 (16:22 -0000)
libbb/Makefile.in

index 7b501531a52bf6a01c7b5cd764907afa25aa7a23..6d0d628a0e26bc3ea5d620297ff7334dee693ad9 100644 (file)
@@ -19,7 +19,7 @@ LIBBB-y:= \
        full_write.c get_last_path_component.c get_line_from_file.c \
        herror_msg.c herror_msg_and_die.c \
        human_readable.c inet_common.c inode_hash.c isdirectory.c \
-       kernel_version.c last_char_is.c login.c loop.c \
+       kernel_version.c last_char_is.c login.c \
        make_directory.c md5.c mode_string.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 \
@@ -38,6 +38,7 @@ LIBBB-y:= \
 
 # conditionally compiled objects:
 LIBBB-$(CONFIG_FEATURE_SHADOWPASSWDS)+=pwd2spwd.c
+LIBBB-$(CONFIG_FEATURE_MOUNT_LOOP)+= loop.c
 LIBBB-$(CONFIG_FEATURE_MTAB_SUPPORT)+= mtab.c
 LIBBB-$(CONFIG_PASSWD)+= pw_encrypt.c
 LIBBB-$(CONFIG_SULOGIN)+= pw_encrypt.c