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]

RE: request: please update crosstool documentation/comments so thatone knowshow to generate a statically-liked cross compiler



Hi Ken!


request: please update crosstool documentation/comments so that one
knows how to generate a statically-liked cross compiler...

I used to know how to do this, I'm searching through the crossgcc
mailing list archives to find the answer...how to generate a
statically-linked cross compiler using crosstool?

From memory:

for binutils, use make configure-host ; make LDFLAGS="-all-static" instead of make

for gcc, use
 make LDFLAGS="-static"
for building one-pass, or
 make BOOT_LDFLAGS="-static" bootstrap
for bootstrapping

This will just build the toolchain static, but will allow you to build dynamically linked executables. If you don't want/need that, you should pass --disable-shared to all configure scripts.

You probably don't need to build the intermediate gcc static.

I haven't checked this, just hope I remember correctly ;)
Anyone feel free to correct me.


HTH, Arno


Information without knowledge is noise knowledge without wisdom is dangerous stupidity

_________________________________________________________________
Play online games with your friends with MSN Messenger http://messenger.msn.nl/



------ 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]