gcc.c (init_gcc_spec): Do not link with static libgcc.a if gcc invoked with -shared.
authorDavid Edelsohn <edelsohn@gnu.org>
Sun, 30 Dec 2001 04:11:52 +0000 (04:11 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Sun, 30 Dec 2001 04:11:52 +0000 (23:11 -0500)
        * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
        gcc invoked with -shared.

From-SVN: r48396

gcc/ChangeLog
gcc/gcc.c

index 5af06849bf0952c6aefdbeb1a6b447ed1b41bda3..69b90569be080f75111893b4be5a3327912164e0 100644 (file)
@@ -1,3 +1,8 @@
+2001-12-29  David Edelsohn  <edelsohn@gnu.org>
+
+       * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
+       gcc invoked with -shared.
+
 2001-12-29  Graham Stott  <grahams@redhat.com>
 
         * config/i386/i386.c (ix86_asm_dialect): Fix enum type.
index 3d22c8c408b0e57771d0eb1651a13cd93f570a45..5094c3bfe0c99974d00d6ae626967565d2335a0b 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -1439,7 +1439,7 @@ init_gcc_specs (obstack, shared_name, static_name, eh_name)
 #ifdef LINK_EH_SPEC
   sprintf (buffer, "%s}}}", static_name);
 #else
-  sprintf (buffer, "%s %s}}}", shared_name, static_name);
+  sprintf (buffer, "%s}}}", shared_name);
 #endif
   obstack_grow (obstack, buffer, strlen (buffer));
   /* Otherwise, use the static version.  */