浏览代码

Do not recurse into ldso if HAVE_SHARED is disabled.

Peter S. Mazinger 19 年之前
父节点
当前提交
a5caac62d6
共有 1 个文件被更改,包括 7 次插入3 次删除
  1. 7 3
      Makefile

+ 7 - 3
Makefile

@@ -28,9 +28,13 @@ noconfig_targets := menuconfig config oldconfig randconfig \
 TOPDIR=./
 TOPDIR=./
 include Rules.mak
 include Rules.mak
 
 
-# need to have libc.so built, before we can build the others
+RTLD_DIR =
-PRE_DIRS = ldso libc
+ifeq ($(HAVE_SHARED),y)
-DIRS = ldso libcrypt libresolv libnsl libutil librt
+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)
 ifeq ($(UCLIBC_HAS_FLOATS),y)
 	DIRS += libm
 	DIRS += libm
 endif
 endif