--nostdlib details?
Alexandre Oliva
aoliva@redhat.com
Sun Sep 9 21:19:00 GMT 2001
On Sep 8, 2001, Jack Howarth <howarth@nitro.med.uc.edu> wrote:
> Does this exclusion of standard system libraries extend to -lgcc?
Yup.
> Is this possibly a bug in gcc 2.95.4? Also if it does exclude
> libgcc should libtool be always adding -lgcc whenever it uses
> -nostdlib with a compiler?
I believe htis is a side effect of the ppc port naming libgcc.a
instead of -lgcc in its spec files (Thanks H.J. Lu for the tip).
libtool doesn't expect this, and ends up discarding libgcc.a at
configure time. I hope it wouldn't be too hard to get libtool to
recognize this flag and use it, but I've been away from libtool
development for too long to know for sure. This should probably be
reported to the libtool mainling list, but we could just bite the
bullet and change the GCC specs too, so that older versions of libtool
keep working.
--
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
mailing list