diff options
author | Jakub Jelinek <jakub@redhat.com> | 2004-12-15 11:09:41 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2004-12-15 11:09:41 +0000 |
commit | 978044a70e29219f2d795d97dd9397f40658c71c (patch) | |
tree | 41de4644b4a23f1d1383b41b41bd8159e58c524d /Makeconfig | |
parent | 14cbd70aa6ab1b1fcb77b4f2ab53e2954ea081e9 (diff) | |
download | glibc-978044a70e29219f2d795d97dd9397f40658c71c.tar.gz |
2004-09-08 H.J. Lu <hongjiu.lu@intel.com>
* Makeconfig (libunwind): New.
(libgcc_eh): Add $(libunwind).
(gnulib): Always set to -lgcc $(libgcc_eh).
(static-gnulib): Always set to -lgcc -lgcc_eh $(libunwind).
(libc.so-gnulib): New.
* Makerules (LDLIBS-c.so): Use $(libc.so-gnulib) instead of
$(static-gnulib).
* configure.in (libc_cv_cc_with_libunwind): Set to yes if gcc
uses -lunwind for static binaries.
* configure: Regenerated.
Diffstat (limited to 'Makeconfig')
-rw-r--r-- | Makeconfig | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/Makeconfig b/Makeconfig index 3368b51e51..d267e5af21 100644 --- a/Makeconfig +++ b/Makeconfig @@ -508,18 +508,19 @@ link-libc-bounded = $(common-objpfx)libc_b.a $(gnulib) $(common-objpfx)libc_b.a link-extra-libs-bounded = $(foreach lib,$(LDLIBS-$(@F:%-bp=%)),$(common-objpfx)$(lib)_b.a) ifndef gnulib -ifneq ($(have-as-needed),yes) - libgcc_eh := -lgcc_eh +ifneq ($(have-cc-with-libunwind),yes) + libunwind = else - libgcc_eh := -Wl,--as-needed -lgcc_s$(libgcc_s_suffix) -Wl,--no-as-needed + libunwind = -lunwind endif -ifneq ($(have-cc-with-libunwind),yes) - gnulib := -lgcc $(libgcc_eh) - static-gnulib := -lgcc -lgcc_eh +ifneq ($(have-as-needed),yes) + libgcc_eh := -lgcc_eh $(libunwind) else - gnulib := -lgcc $(libgcc_eh) -lunwind - static-gnulib := -lgcc -lgcc_eh -lunwind + libgcc_eh := -Wl,--as-needed -lgcc_s$(libgcc_s_suffix) $(libunwind) -Wl,--no-as-needed endif +gnulib := -lgcc $(libgcc_eh) +static-gnulib := -lgcc -lgcc_eh $(libunwind) +libc.so-gnulib := -lgcc endif ifeq ($(elf),yes) +preinit = $(addprefix $(csu-objpfx),crti.o) |