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

See the CrossGCC FAQ for lots more infromation.


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

ld needing libgcc



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


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