diff options
author | David Edelsohn <edelsohn@gnu.org> | 2001-12-30 04:11:52 +0000 |
---|---|---|
committer | David Edelsohn <dje@gcc.gnu.org> | 2001-12-29 23:11:52 -0500 |
commit | bde5864890fd35c90a0eee732b030ff634c30eca (patch) | |
tree | 851db4307d63d25eb05746d849b156969031d25c | |
parent | 80f33d06a3c11890c664c8936e29dade49dfd7f2 (diff) | |
download | gcc-bde5864890fd35c90a0eee732b030ff634c30eca.zip gcc-bde5864890fd35c90a0eee732b030ff634c30eca.tar.gz gcc-bde5864890fd35c90a0eee732b030ff634c30eca.tar.bz2 |
gcc.c (init_gcc_spec): Do not link with static libgcc.a if gcc invoked with -shared.
* gcc.c (init_gcc_spec): Do not link with static libgcc.a if
gcc invoked with -shared.
From-SVN: r48396
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/gcc.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5af06849..69b9056 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. @@ -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. */ |