This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Building a cross compiler


> 
> 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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]