This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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: libgcc questions


maxwell@101freeway.com wrote:

>Although statically
>linking the whole program is not viable due to the significant increase in
>size of the binary, statically linking in just libc and libgcc might be a
>possibility once Mozilla finishes relicensing - can gcc do that?
>

Yes, see the -static-libgcc option. Be aware that this is asking for 
trouble if you ever want to throw exceptions across shared libraries, 
because there could be different incompatible versions of the EH runtime 
linked in. But, IIRC, mozilla does not use exceptions anyway so that may 
not be an issue.

regards

Bryce.



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