Removing -fexceptions from $RPM_OPT_FLAGS

Frank Ch. Eigler fche at redhat.com
Wed Jan 19 16:13:26 UTC 2011


Tom Lane <tgl at redhat.com> writes:

> Hmm ... so what should I do with mysql?  Since approximately forever,
> upstream has recommended using -fno-exceptions (and also
> -felide-constructors -fno-rtti) in CXXFLAGS.  [...]

-fexceptions / -frtti are essentially harmless, so I am curious why
they were ever thought to be undesirable.  -felide-constructors might
have worked around some gcc bug perhaps, but it must not be an issue
any more.

> Seems like I should either drop the nonstandard CXXFLAGS, or hack CFLAGS
> to remove -fexceptions.

I suggest the former, especially without better rationale.

- FChE


More information about the devel mailing list