aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorDavid Edelsohn <edelsohn@gnu.org>2002-02-23 00:00:27 +0000
committerDavid Edelsohn <dje@gcc.gnu.org>2002-02-22 19:00:27 -0500
commit43710f9f8933a7925b6fe656513a75c8fe6016d1 (patch)
tree92d0135bd46ddbe3b8f859ac53e8b82e59f96b24 /gcc/gcc.c
parentdcb3680413ddbac725846769b127acad221c4588 (diff)
downloadgcc-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
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 1fcd8f3..2e4d7f5 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);