ld needing libgcc
Mark Pulver
mpulver@research.canon.com.au
Sun Aug 15 16:49:00 GMT 1999
I've build gcc-2.95 for arm-elf:
> ln -s ../newlib-1.8.1/newlib newlib
> ./configure --prefix=${PROJECT}/arm-elf --target=arm-elf --with-gnu-ld --with-gnu-as --with-elf --with-cpu=strongarm1100 --with-newlib
> modify gcc/config/unknown-elf.h : undef HAVE_ATEXIT
> make LANGUAGES=c
> make LANGUAGES=c install
When I compile and link I need to append -lgcc to the command,
as well as adding the folling link:
> cd ${prefix}/arm-elf/arm-elf/lib; ln -s ../../lib/gcc-lib/arm-elf/2.95/libgcc.a .
in order for the program to link, else it can't find _gccmain().
Is this correct, or have I missed some step in the build/install?
Mark
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
More information about the crossgcc
mailing list