mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-19 18:59:50 +08:00
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:
parent
59bd14d84a
commit
ed4190cfad
@ -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.
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user