gcc.c (init_gcc_specs): When linking against libgcc_s.so, also link against libgcc.a.
authorRichard Henderson <rth@redhat.com>
Thu, 31 May 2001 20:53:50 +0000 (13:53 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Thu, 31 May 2001 20:53:50 +0000 (13:53 -0700)
        * gcc.c (init_gcc_specs): When linking against libgcc_s.so,
        also link against libgcc.a.

From-SVN: r42757

gcc/ChangeLog
gcc/gcc.c

index ff8afc991446d06f9fc898ace1b4f12d787c7e70..7ad3c67ad3df3fad6080c6fe51d14a558745f985 100644 (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.
index 948793bcf4b67d2db41932aa948146ff7d332dd5..884fb8255a587a11a288f94085c0e66fced33a8f 100644 (file)
--- 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,