diff options
author | David Edelsohn <edelsohn@gnu.org> | 2002-02-23 00:00:27 +0000 |
---|---|---|
committer | David Edelsohn <dje@gcc.gnu.org> | 2002-02-22 19:00:27 -0500 |
commit | 43710f9f8933a7925b6fe656513a75c8fe6016d1 (patch) | |
tree | 92d0135bd46ddbe3b8f859ac53e8b82e59f96b24 | |
parent | dcb3680413ddbac725846769b127acad221c4588 (diff) | |
download | gcc-43710f9f8933a7925b6fe656513a75c8fe6016d1.zip gcc-43710f9f8933a7925b6fe656513a75c8fe6016d1.tar.gz gcc-43710f9f8933a7925b6fe656513a75c8fe6016d1.tar.bz2 |
gcc.c (init_gcc_spec): Do not link with static libgcc.a if gcc invoked with -shared-libgcc.
* gcc.c (init_gcc_spec): Do not link with static libgcc.a if
gcc invoked with -shared-libgcc.
From-SVN: r49979
-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 252af06..1beac11 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 @@ -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); |