Commit 43710f9f by David Edelsohn Committed by David Edelsohn

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
parent dcb36804
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> 2002-02-22 Jakub Jelinek <jakub@redhat.com>
PR c++/5748 PR c++/5748
......
...@@ -1418,7 +1418,7 @@ init_gcc_specs (obstack, shared_name, static_name, eh_name) ...@@ -1418,7 +1418,7 @@ init_gcc_specs (obstack, shared_name, static_name, eh_name)
const char *p; const char *p;
/* If we see -shared-libgcc, then use the shared version. */ /* 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)); obstack_grow (obstack, buffer, strlen (buffer));
/* If we see -static-libgcc, then use the static version. */ /* If we see -static-libgcc, then use the static version. */
sprintf (buffer, "%%{static-libgcc:%s %s}", static_name, eh_name); sprintf (buffer, "%%{static-libgcc:%s %s}", static_name, eh_name);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment