Removing -fexceptions from $RPM_OPT_FLAGS

William Lima wlima at primate.com.br
Wed Jan 19 15:11:39 UTC 2011


On Wed, Jan 19, 2011 at 4:53 AM, Haïkel Guémar <karlthered at gmail.com> wrote:
> 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.

it was disabled since I use '-fno-exceptions' in Makefile.

> 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.

crash (e.g. alloc).

> 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.

Indeed, if exceptions are mandatory in Fedora I will enable it.


-- 
w


More information about the devel mailing list