This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: How are the specs generated?
- From: Ronald Landheer-Cieslak <ronald at landheer dot com>
- To: Jim Wilson <wilson at tuliptree dot org>
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 13 Jun 2003 10:34:25 +0200 (CEST)
- Subject: Re: How are the specs generated?
On Thu, 12 Jun 2003, Jim Wilson wrote:
> Ronald Landheer-Cieslak wrote:
> > I'm trying to build a cross-compiler for i386-unknown-freebsd4.7 using
> > Newlib as crt, and am trying to figure out how to change the specs used by
> > xgcc to not want a non-existant crt1.o.
>
> That seems unlikely to work. If you want to be able to run programs on
> a freebsd system, you should use the freebsd libraries and header files.
> There is a --with-sysroot configure option that can help here. Copy
> the /usr/include and /usr/lib directories from the target system to the
> host, and then point gcc to the freebsd root directory with --with-sysroot.
That's exactly what I'm trying to avoid to do..
> > My problem is that when bootstrapping libffi, ld can't find crt1.o (and
> See the STARTFILE_SPEC definition in i386/freebsd.h. The default
> definition in gcc.c uses crt0.o. The freebsd one uses crt1.o.
Thanx, that's the kind of info I was looking for :)
thx
rlc