regarding the -static command option
murli
nethimk@yahoo.com
Mon Jul 18 03:52:00 GMT 2005
Hi all,
I have generated a powerpc cross compiler using the
crosstools. I am trying to use it to generate binaries
for powerpc which I execute on a simulator. Here is
where I am having problem.
when I have to modify Makefile to generate powerpc
binaries for benchmarks, all I do is replace gcc with
gcc-cross-powerpc and add an option -static and it
generates correct binaries which the simulator
executes.
However, if instead of the compiler line in Makefile
also has a linker, for example
gcc a.c -o a.out -lm
then the cross compiler doesnot generate correct
output
gcc-cross-powerpc -static a.c -o a.out -lm does not
generate correct binaries. Can anyone explain why this
is a problem and how cna I resolve it? Any help shall
be greatly appreciated.
Thanks
Murali
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
More information about the crossgcc
mailing list