This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: --nostdlib details?
- To: Jack Howarth <howarth at nitro dot med dot uc dot edu>, hjl at lucon dot org
- Subject: Re: --nostdlib details?
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 10 Sep 2001 01:18:58 -0300
- Cc: gcc at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <200109080746.DAA57676@nitro.med.uc.edu>
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