multilib and with/without exceptionsand rtti

Henning Baldersheim henning.baldersheim@devoll.no
Thu Mar 11 19:26:00 GMT 2004


Hi

I would like to have different libraries for use with and without 
exceptions. The reason is codesize. I see that when I use any features from 
stl, almost everything is linked in due to libsup++ compiled with 
exceptions. functexecpt.cc makes references all over the place.

So I thought that then I could use the multilib feature to make different 
libraries. I have looked at gccint.info and Fragments there. It worked well 
when I added the fexception/fno-exception option. However I would like to 
use the pair -fexceptions -frtti and -fno-exceptions -fno-rtti. Especially 
since -fno-rtti is incompatible with -exceptions. I tried excluding 
*fexception/*fno-rtti. It almost worked, but since the default is 
-fexceptions -frtti, it failed when it applied only -fno-rtti.

How do I go about to do what I want most elegantly ?
Is it possible so say that -fno-rtti requires -fno-exceptions ?

Henning



More information about the Gcc mailing list