aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorGravatar Rob Landley <rob@landley.net>2006-02-21 19:11:35 +0000
committerGravatar Rob Landley <rob@landley.net>2006-02-21 19:11:35 +0000
commitd6e14d8beebb5c9571bded30df6568570f0c2a54 (patch)
tree69cc156c0b3d3a8972e03dfd73108c159bf0be11 /shell
parent6f2a0b22754f1ad85204018491b8ad356a546f0e (diff)
downloadbusybox-d6e14d8beebb5c9571bded30df6568570f0c2a54.tar.gz
busybox-d6e14d8beebb5c9571bded30df6568570f0c2a54.tar.bz2
Don't build directory libraries unless we're building an applet that needs it.
Cherry-picked from Devin Bayer's big MacOS X patch.
Diffstat (limited to 'shell')
-rw-r--r--shell/Makefile.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/shell/Makefile.in b/shell/Makefile.in
index a2040995d..fcd93f345 100644
--- a/shell/Makefile.in
+++ b/shell/Makefile.in
@@ -17,7 +17,9 @@ SHELLT-$(CONFIG_LASH) += lash.o
SHELLT-$(CONFIG_MSH) += msh.o
SHELLT-$(CONFIG_FEATURE_COMMAND_EDITING) += cmdedit.o
+ifneq ($(strip $(SHELLT-y)),)
libraries-y+=$(SHELL_DIR)$(SHELL_AR)
+endif
SHELLT_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(SHELLT-y))
SHELLT_SRC-a:=$(wildcard $(srcdir)/*.c)