diff options
author | Rob Landley <rob@landley.net> | 2006-08-28 20:04:46 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2006-08-28 20:04:46 +0000 |
commit | b8cea6dcb39b3c4c2b1c153bc5fd902345548492 (patch) | |
tree | 7313fad7953cf8ba002b8c946cb87a280a07d16b | |
parent | abfe107f7899145720741dd9051f9fe06fcd7030 (diff) | |
download | busybox-w32-b8cea6dcb39b3c4c2b1c153bc5fd902345548492.tar.gz busybox-w32-b8cea6dcb39b3c4c2b1c153bc5fd902345548492.tar.bz2 busybox-w32-b8cea6dcb39b3c4c2b1c153bc5fd902345548492.zip |
Jordan Crouse submitted a patch to only include xregcomp.c when we actually
use it, thus fixing building against uClibc with regex support disabled.
-rw-r--r-- | libbb/Makefile.in | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/libbb/Makefile.in b/libbb/Makefile.in index ae9c9f0db..f94c100a9 100644 --- a/libbb/Makefile.in +++ b/libbb/Makefile.in | |||
@@ -29,7 +29,7 @@ LIBBB-y:= \ | |||
29 | safe_strncpy.c setup_environment.c sha1.c simplify_path.c \ | 29 | safe_strncpy.c setup_environment.c sha1.c simplify_path.c \ |
30 | trim.c u_signal_names.c vdprintf.c verror_msg.c \ | 30 | trim.c u_signal_names.c vdprintf.c verror_msg.c \ |
31 | vherror_msg.c vperror_msg.c wfopen.c xconnect.c xgetcwd.c xstat.c \ | 31 | vherror_msg.c vperror_msg.c wfopen.c xconnect.c xgetcwd.c xstat.c \ |
32 | xgethostbyname.c xgethostbyname2.c xreadlink.c xregcomp.c xgetlarg.c \ | 32 | xgethostbyname.c xgethostbyname2.c xreadlink.c xgetlarg.c \ |
33 | get_terminal_width_height.c fclose_nonstdin.c fflush_stdout_and_exit.c \ | 33 | get_terminal_width_height.c fclose_nonstdin.c fflush_stdout_and_exit.c \ |
34 | getopt_ulflags.c default_error_retval.c wfopen_input.c speed_table.c \ | 34 | getopt_ulflags.c default_error_retval.c wfopen_input.c speed_table.c \ |
35 | perror_nomsg_and_die.c perror_nomsg.c skip_whitespace.c bb_askpass.c \ | 35 | perror_nomsg_and_die.c perror_nomsg.c skip_whitespace.c bb_askpass.c \ |
@@ -49,6 +49,20 @@ LIBBB-$(CONFIG_LOGIN)+= correct_password.c | |||
49 | LIBBB-$(CONFIG_DF)+= find_mount_point.c | 49 | LIBBB-$(CONFIG_DF)+= find_mount_point.c |
50 | LIBBB-$(CONFIG_EJECT)+= find_mount_point.c | 50 | LIBBB-$(CONFIG_EJECT)+= find_mount_point.c |
51 | 51 | ||
52 | # We shouldn't build xregcomp.c if we don't need it - this ensures we don't | ||
53 | # require regex.h to be in the include dir even if we don't need it thereby | ||
54 | # allowing us to build busybox even if uclibc regex support is disabled. | ||
55 | |||
56 | regex-y:= | ||
57 | |||
58 | regex-$(CONFIG_AWK) += xregcomp.c | ||
59 | regex-$(CONFIG_SED) += xregcomp.c | ||
60 | regex-$(CONFIG_LESS) += xregcomp.c | ||
61 | regex-$(CONFIG_DEVFSD) += xregcomp.c | ||
62 | |||
63 | # Sort has the happy side efect of returning a unique list | ||
64 | LIBBB-y += $(sort $(regex-y)) | ||
65 | |||
52 | LIBBB-y:=$(patsubst %,$(srcdir)/%,$(LIBBB-y)) | 66 | LIBBB-y:=$(patsubst %,$(srcdir)/%,$(LIBBB-y)) |
53 | 67 | ||
54 | get-file-subparts = $(addsuffix .o,$(shell sed -n -e "s/^\#ifdef L_//p" ${1})) | 68 | get-file-subparts = $(addsuffix .o,$(shell sed -n -e "s/^\#ifdef L_//p" ${1})) |