From 43710f9f8933a7925b6fe656513a75c8fe6016d1 Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Sat, 23 Feb 2002 00:00:27 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/gcc.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 252af066e80..1beac11db50 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-02-22 David Edelsohn + + * gcc.c (init_gcc_spec): Do not link with static libgcc.a if + gcc invoked with -shared-libgcc. + 2002-02-22 Jakub Jelinek PR c++/5748 diff --git a/gcc/gcc.c b/gcc/gcc.c index 1fcd8f32822..2e4d7f55863 100644 --- 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); -- 2.30.2