Removing -fexceptions from $RPM_OPT_FLAGS

Haïkel Guémar karlthered at gmail.com
Wed Jan 19 06:53:46 UTC 2011


hi,

after a good night of sleep, i just noticed that *just* removing the
-fexceptions flag won't change anything.
-fexceptions is for C code linking to C++ code, but it's already default
when compiling C++, then you have to use the -fno-exceptions flag
instead if you really want to disable that feature.

Besides, what happens if the standard library (or another underlying
library) throws an exception ? -fno-exceptions is for embedded guys that
already disabled the whole exception feature, not for generalistic
systems like Fedora.

Morale: that's just *PLAIN USELESS* to only remove the -fexceptions from
flags, anyway, it's already there. And sleeping might be a good thing.

best regards,
H.


More information about the devel mailing list