This is the mail archive of the crossgcc@cygnus.com mailing list for the crossgcc project.


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

Re: linking


On Mon, 9 Nov 1998, Jyrki O Saarinen wrote:

> 
> How do I tell my cross-egcs (ppc-elf target running on linux/x86 host)
> what to do in the linking stage? Normally I do:
> 
> ppc-elf-gcc -c *.c
> ppc-elf-ld -r /ppc-elf/lib/c_ppc.o *.o /ppc-elf/lib/libmoto.a
> /ppc-elf/lib/c_end.o /ppc-elf/lib/scppc.a
> 
> I would like that it ppc-elf-gcc would link like that when I compile with
> ppc-elf-gcc myprog.c -o myprog.
> 
> c_ppc.o is the startup code, libmoto.a is the Motorola math library (what
> is the newest by the way?), c_end.o is the end code and scppc.a is the
> ANSI C (+ additional math) library.
> 
> 
> 
> ________________________________________________
> To get help for the crossgcc list, send mail to
> crossgcc-request@cygnus.com with the text 'help'
> (without the quotes) in the body of the message.
> 

Edit the lib/gcc-lib/ppc-elf/egcs-version/specs file to do this.

--
Brian Ford
Software Engineer
Vital Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax:   314-551-8444

________________________________________________
To get help for the crossgcc list, send mail to
crossgcc-request@cygnus.com with the text 'help'
(without the quotes) in the body of the message.