summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-10-14 19:41:23 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-10-14 19:41:23 +0000
commita5caac62d687d701d3e807696fd8cf7963b1ce27 (patch)
tree07f71cdb8e9482d04f4cb086dd3da52c707a40e1 /Makefile
parent9ef10914a388dd1f600fd5728bb1db53bd787b6f (diff)
Do not recurse into ldso if HAVE_SHARED is disabled.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 0b9f782fa..d383cc111 100644
--- a/Makefile
+++ b/Makefile
@@ -28,9 +28,13 @@ noconfig_targets := menuconfig config oldconfig randconfig \
TOPDIR=./
include Rules.mak
-# need to have libc.so built, before we can build the others
-PRE_DIRS = ldso libc
-DIRS = ldso libcrypt libresolv libnsl libutil librt
+RTLD_DIR =
+ifeq ($(HAVE_SHARED),y)
+RTLD_DIR = ldso
+endif
+# need to have libc built, before we can build the others
+PRE_DIRS = $(RTLD_DIR) libc
+DIRS = $(RTLD_DIR) libcrypt libresolv libnsl libutil librt
ifeq ($(UCLIBC_HAS_FLOATS),y)
DIRS += libm
endif