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
This commit is contained in:
Richard Henderson 2001-05-31 13:53:50 -07:00 committed by Richard Henderson
parent 59bd14d84a
commit ed4190cfad
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2001-05-31 Richard Henderson <rth@redhat.com>
* gcc.c (init_gcc_specs): When linking against libgcc_s.so,
also link against libgcc.a.
2001-05-31 Geoff Keating <geoffk@cygnus.com>
* config/mips/mips.h (ASM_OUTPUT_ASCII): Convert to function.

View File

@ -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,