Closed xantares closed 8 years ago
Please remove -fexceptions
.
thanks
Out of curiosity, why did you add it? Besides it isn't the first time that I have suggested people not use -fexceptions
because it brings nothing (I am not exaggerating) but bugs.
it's enabled in the default flags of the mingw-configure script on archlinux which is in turn taken from fedora:
https://fedoraproject.org/wiki/Packaging:MinGW?rd=Packaging/MinGW
-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
I don't know the rationale for enabling all these.
That is a nonsense flag. C code is usually not exception safe. Writing exception safe C code would require knowledge of stack unwinding which most C developers are unaware of, and as a result you only get bugs. C++ developers should not assume foreign code is exception safe no matter what language it is written in. Hence -fexceptions
is valueless.
I would suggest you write to their maintainers to remove It from their pages. It is misleading.
Hi,
On archlinux the package builds fine for x86_64-w64-mingw32 target but not for i686:
undefined reference to
__gcc_personality_sj0`Seems this is should be part of the standard library:
$ grep -nr __gcc_personality_sj0 /usr/i686-w64-mingw32/lib/ Binary file /usr/i686-w64-mingw32/lib/libgcc_s.a matches
Any clue ?