Make the compiler only build static. . .

ANDY KENNEDY ANDY.KENNEDY@adtran.com
Thu May 5 19:54:00 GMT 2011


Note:  I don't want a static toolchain.

I have a requirement that the toolchain be eglibc which is too large
for my tastes.  So, I want the RFS to use statically linked uClibC
(which, when my patch is done, is easy enough to do through BuildRoot).
I want to FORCE the toolchain I build to link all binaries STATIC since
there will not be eglibc on the RFS.

I've seen in the gcc options that there is a way to force LD options to
be -static, however, when I attempted to do this, it didn't work.  I'd
rather not depend on the makefiles that build the "external" apps to
pass an LDFLAGS=-static to the make system.

Is there an option I can configure in crosstool that will allow me to
do this?

Thanks,
Andy

--
For unsubscribe information see http://sourceware.org/lists.html#faq



More information about the crossgcc mailing list