summaryrefslogtreecommitdiff
path: root/libc/Makefile.in
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-12-08 22:53:40 (GMT)
committerMike Frysinger <vapier@gentoo.org>2006-12-08 22:53:40 (GMT)
commit808694e8a330e32741b7781467610d8cec99ae6e (patch)
treea2114e7c67f1f88f5df4687d6ab7122892e68283 /libc/Makefile.in
parentcba2c53724a6ed35f32775ec38906268c1bbd340 (diff)
Richard Sandiford writes: add support for init/fini arrays in shared flat libraries
Diffstat (limited to 'libc/Makefile.in')
-rw-r--r--libc/Makefile.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/Makefile.in b/libc/Makefile.in
index 6303a86..0387bfa 100644
--- a/libc/Makefile.in
+++ b/libc/Makefile.in
@@ -50,6 +50,7 @@ libc-multi-y = $(filter-out $(libc-nomulti-y:.o=.c),$(all_sources))
endif
lib-a-y += $(top_builddir)lib/libc.a
+lib-gdb-y += $(top_builddir)lib/libc.gdb
lib-so-y += $(libc)
objclean-y += libc_clean
@@ -89,5 +90,8 @@ $(top_builddir)lib/libc.a: $(libc-a-y) | $(crt-y)
$(do_strip)
$(do_ar)
+$(top_builddir)lib/libc.gdb: $(top_builddir)lib/libc.a $(LINK_FLAT_CRTS)
+ $(call link-flat.so,$(@:.gdb=),$(SHARED_FLAT_ID))
+
libc_clean:
$(RM) $(libc_OUT)/*.{o,os,oS,a}