gcc.c (init_gcc_spec): Do not link with static libgcc.a if gcc invoked with -shared...
authorDavid Edelsohn <edelsohn@gnu.org>
Sat, 23 Feb 2002 00:00:27 +0000 (00:00 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Sat, 23 Feb 2002 00:00:27 +0000 (19:00 -0500)
        * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
        gcc invoked with -shared-libgcc.

From-SVN: r49979

gcc/ChangeLog
gcc/gcc.c

index 252af066e80362d9295f587e738b71faf3e00d41..1beac11db509401582469685d9a6b2e1f191acfe 100644 (file)
@@ -1,3 +1,8 @@
+2002-02-22  David Edelsohn  <edelsohn@gnu.org>
+
+       * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
+       gcc invoked with -shared-libgcc.
+
 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
 
        PR c++/5748
index 1fcd8f328229b7b2e89f6f4f2fb65cba8499cc56..2e4d7f5586339f210d35ffb049b0b609571c1f7d 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -1418,7 +1418,7 @@ init_gcc_specs (obstack, shared_name, static_name, eh_name)
   const char *p;
 
   /* If we see -shared-libgcc, then use the shared version.  */
-  sprintf (buffer, "%%{shared-libgcc:%s %s}", shared_name, static_name);
+  sprintf (buffer, "%%{shared-libgcc:%s}", shared_name);
   obstack_grow (obstack, buffer, strlen (buffer));
   /* If we see -static-libgcc, then use the static version.  */
   sprintf (buffer, "%%{static-libgcc:%s %s}", static_name, eh_name);