libgcc questions
Bryce McKinlay
bryce@waitaki.otago.ac.nz
Sun Mar 31 02:15:00 GMT 2002
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.
More information about the Gcc
mailing list