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

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

regarding the -static command option


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


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