summaryrefslogtreecommitdiff
path: root/libc/Makefile
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-01-19 01:47:58 +0000
committerMike Frysinger <vapier@gentoo.org>2005-01-19 01:47:58 +0000
commit1026731d290ea0fb5bf100b97451fe09877b364b (patch)
tree4d55267dd656ff32829c75d8c38378fd3f4e0124 /libc/Makefile
parent10b86198725dc9363023d612c9fb1422fe6bf6fe (diff)
fix target dependencies to support parallel building
Diffstat (limited to 'libc/Makefile')
-rw-r--r--libc/Makefile9
1 files changed, 3 insertions, 6 deletions
diff --git a/libc/Makefile b/libc/Makefile
index c2feb77ac..c37f11882 100644
--- a/libc/Makefile
+++ b/libc/Makefile
@@ -37,18 +37,15 @@ DIRS = misc pwd_grp stdio string termios inet signal stdlib sysdeps unistd
VERSION_SCRIPT:=${shell if [ -f sysdeps/linux/$(TARGET_ARCH)/libc.map ] ; then \
echo "--version-script sysdeps/linux/$(TARGET_ARCH)/libc.map"; fi}
-all: halfclean subdirs $(LIBNAME) $(DO_SHARED)
+all: halfclean $(LIBNAME) $(DO_SHARED)
-ar-target:
+$(LIBNAME) ar-target: subdirs
$(RANLIB) $(LIBNAME)
$(INSTALL) -d $(TOPDIR)lib
$(RM) $(TOPDIR)lib/$(LIBNAME)
$(INSTALL) -m 644 $(LIBNAME) $(TOPDIR)lib
-$(LIBNAME): subdirs ar-target
-
-
-shared: $(TOPDIR)lib/$(LIBNAME)
+shared: $(LIBNAME)
$(LD) $(LDFLAGS) $(VERSION_SCRIPT) -soname=$(SHARED_MAJORNAME) -o $(SHARED_FULLNAME) \
--whole-archive $(LIBNAME) \
$(TOPDIR)libc/misc/internals/interp.o --no-whole-archive \