소스 검색

Do not recurse into ldso if HAVE_SHARED is disabled.

Peter S. Mazinger 20 년 전
부모
커밋
a5caac62d6
1개의 변경된 파일7개의 추가작업 그리고 3개의 파일을 삭제
  1. 7 3
      Makefile

+ 7 - 3
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