From ed4190cfad052426e023a893c8fb486279533cb2 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Thu, 31 May 2001 13:53:50 -0700 Subject: [PATCH] gcc.c (init_gcc_specs): When linking against libgcc_s.so, also link against libgcc.a. * gcc.c (init_gcc_specs): When linking against libgcc_s.so, also link against libgcc.a. From-SVN: r42757 --- gcc/ChangeLog | 5 +++++ gcc/gcc.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ff8afc99144..7ad3c67ad3d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-05-31 Richard Henderson + + * gcc.c (init_gcc_specs): When linking against libgcc_s.so, + also link against libgcc.a. + 2001-05-31 Geoff Keating * config/mips/mips.h (ASM_OUTPUT_ASCII): Convert to function. diff --git a/gcc/gcc.c b/gcc/gcc.c index 948793bcf4b..884fb8255a5 100644 --- a/gcc/gcc.c +++ b/gcc/gcc.c @@ -1323,15 +1323,15 @@ init_gcc_specs (obstack, shared_name, static_name) char buffer[128]; /* If we see -shared-libgcc, then use the shared version. */ - sprintf (buffer, "%%{shared-libgcc:%s}", shared_name); + sprintf (buffer, "%%{shared-libgcc:%s %s}", shared_name, static_name); obstack_grow (obstack, buffer, strlen (buffer)); /* If we see -static-libgcc, then use the static version. */ sprintf (buffer, "%%{static-libgcc:%s}", static_name); obstack_grow (obstack, buffer, strlen (buffer)); /* Otherwise, if we see -shared, then use the shared version. */ sprintf (buffer, - "%%{!shared-libgcc:%%{!static-libgcc:%%{shared:%s}}}", - shared_name); + "%%{!shared-libgcc:%%{!static-libgcc:%%{shared:%s %s}}}", + shared_name, static_name); obstack_grow (obstack, buffer, strlen (buffer)); /* Otherwise, use the static version. */ sprintf (buffer,