summaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorRob Landley2006-02-21 19:11:35 +0000
committerRob Landley2006-02-21 19:11:35 +0000
commitd6e14d8beebb5c9571bded30df6568570f0c2a54 (patch)
tree69cc156c0b3d3a8972e03dfd73108c159bf0be11 /coreutils
parent6f2a0b22754f1ad85204018491b8ad356a546f0e (diff)
downloadbusybox-d6e14d8beebb5c9571bded30df6568570f0c2a54.zip
busybox-d6e14d8beebb5c9571bded30df6568570f0c2a54.tar.gz
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 'coreutils')
-rw-r--r--coreutils/Makefile.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/coreutils/Makefile.in b/coreutils/Makefile.in
index 4e7b7bd..2ab256c 100644
--- a/coreutils/Makefile.in
+++ b/coreutils/Makefile.in
@@ -82,7 +82,11 @@ COREUTILS-$(CONFIG_WHOAMI) += whoami.o
COREUTILS-$(CONFIG_YES) += yes.o
COREUTILS-y:=$(sort $(COREUTILS-y))
+
+ifneq ($(strip $(COREUTILS-y)),)
libraries-y+=$(COREUTILS_DIR)$(COREUTILS_AR)
+endif
+
COREUTILS_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(COREUTILS-y))
COREUTILS_SRC-a:=$(wildcard $(srcdir)/*.c)
APPLET_SRC-y+=$(COREUTILS_SRC-y)