PATCH: Make -shared-libgcc default in some situations

Alexandre Oliva aoliva@redhat.com
Sat Feb 3 15:07:00 GMT 2001


On Feb  3, 2001, Mark Mitchell <mark@codesourcery.com> wrote:

>>>>>> "Alexandre" == Alexandre Oliva <aoliva@redhat.com> writes:
Alexandre> On Feb  2, 2001, Mark Mitchell <mark@codesourcery.com> wrote:

>>> In private email, David Edelsohn, Richard Henderson, and I agreed that
>>> making -shared-libgcc the default when:

Alexandre> - A shared libgcc is built, and

> Yes; that is correct.  The patch does that -- I think.

It seems to me that init_gcc_specs will always use shared_name -lgcc_s
in this case:

  sprintf (buffer,
	   "%%{!shared-libgcc:%%{!static-libgcc:%%{shared:%s}}}", 
	   shared_name);

Looks like this must handle the case of ! ENABLE_SHARED_LIBGCC and use
static_name.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


More information about the Gcc-patches mailing list