Browse Source

make sure libdl static and shared targets are built properly

Mike Frysinger 20 years ago
parent
commit
dd8d43ce31
1 changed files with 6 additions and 9 deletions
  1. 6 9
      ldso/Makefile

+ 6 - 9
ldso/Makefile

@@ -21,21 +21,18 @@ include $(TOPDIR)Rules.mak
 
 DIRS = ldso libdl
 
-all: ldso
+all: ldso libdl
 
-ldso: headers
 ifeq ($(strip $(BUILD_UCLIBC_LDSO)),y)
+ldso: headers
 	$(MAKE) -C ldso
-else
-	echo "Not building ld-uClibc"
-endif
-
-shared: libdl
 libdl: ldso headers
-ifeq ($(strip $(BUILD_UCLIBC_LDSO)),y)
 	$(MAKE) -C libdl
+shared: libdl
+	$(MAKE) -C libdl shared
 else
-	echo "Not building libdl"
+ldso libdl shared:
+	echo "Skipping $@ target"
 endif
 
 HEADERS = $(patsubst %, include/%, elf.h dl-startup.h dl-syscalls.h dl-sysdep.h)