summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-11-22 01:44:51 +0000
committerMike Frysinger <vapier@gentoo.org>2005-11-22 01:44:51 +0000
commitb20ee706efe1c40b016efe41e1486ef6e10d6880 (patch)
tree50ac361f0276a2b51593471b7a392287211d582f /libc
parent28cfdb86441668581d1d8efd11137bb8da9f65a4 (diff)
rework depends and stripping so that libraries arent rebuilt all the time in a loop
Diffstat (limited to 'libc')
-rw-r--r--libc/Makefile.in14
1 files changed, 10 insertions, 4 deletions
diff --git a/libc/Makefile.in b/libc/Makefile.in
index f65121c00..83a5a9392 100644
--- a/libc/Makefile.in
+++ b/libc/Makefile.in
@@ -41,11 +41,11 @@ libc-so-y += $(libc-shared-y)
libc-nomulti-y += $(libc-shared-y)
-lib-a-y += $(top_builddir)lib/libc.a crt-y
-lib-so-y += libc-y $(top_builddir)lib/$(NONSHARED_LIBNAME) crt-y
+lib-a-y += $(top_builddir)lib/libc.a $(crt-y)
+lib-so-y += libc-y $(top_builddir)lib/$(NONSHARED_LIBNAME) $(crt-y)
objclean-y += libc_clean
-$(top_builddir)lib/libc.so: $(libc_OUT)/libc_so.a $(top_builddir)include/headers_done $(interp)
+$(top_builddir)lib/libc.so: $(libc_OUT)/libc_so.a $(interp)
$(call link.so,$(libc_FULL_NAME),$(MAJOR_VERSION))
$(Q)$(RM) $@
$(Q)echo "/* GNU ld script" > $@
@@ -65,12 +65,18 @@ $(libc_OUT)/libc_so.a: $(libc-so-y)
ifeq ($(DOPIC),y)
$(top_builddir)lib/libc.a: $(libc-a-y:.o=.os)
else
-$(top_builddir)lib/libc.a: $(libc-a-y)
+$(top_builddir)lib/libc.a: $(libc-a-y) $(libc_OUT)/libc_so.a
endif
$(Q)$(INSTALL) -d $(dir $@)
$(Q)$(RM) $@
+ifeq ($(DOPIC),y)
+ $(Q)$(STRIPTOOL) $(STRIP_FLAGS) $(filter-out $(libc-so-y),$^)
+else
$(do_strip)
+endif
$(do_ar)
+$(top_builddir)lib/$(NONSHARED_LIBNAME): $(top_builddir)lib/libc.a
+
libc_clean:
$(RM) $(libc_OUT)/*.{o,os,a}