linking
Jyrki O Saarinen (jxsaarin@cs.helsinki.fi)
Mon, 9 Nov 1998 12:00:19 +0200
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.