This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Building a cross compiler
- To: ralf at uni-koblenz dot de
- Subject: Re: Building a cross compiler
- From: hjl at lucon dot org (H.J. Lu)
- Date: Mon, 27 Apr 1998 09:50:13 -0700 (PDT)
- Cc: ben at proximity dot com dot au, egcs at cygnus dot com
>
> On Mon, Apr 27, 1998 at 11:11:37AM +1000, The Red Fox wrote:
>
> > mv libgcc1.a libgcc1.cross || (echo You must find a way to make libgcc1.a;
> > false)
> > mv: libgcc1.a: No such file or directory
> > You must find a way to make libgcc1.a
> > make[1]: *** [libgcc1.cross] Error 1
> > make[1]: Leaving directory `/home/usr_src/egcs-1.0.2/build/gcc'
> > make: *** [cross] Error 2
> >
> > The big question is, how do I find a way to make libgcc1.a?
>
> In general writing libgcc1.a in assembler or just taking it from an
> existing native gcc compile are the two options.
>
The third one is if libgcc1 is written in asm in egcs or it can be
compiled by egcs, you can set OLD_CC to "./xgcc -B./" and compile it
by hand:
# cd egcs/gcc
# make libgcc1.a OLD_CC="./xgcc -B./"
I have done that for Linux/x86. Maybe we should add something to
egcs to do it automatically. It should be easy.
--
H.J. Lu (hjl@gnu.org)