https://bugs.winehq.org/show_bug.cgi?id=48161
--- Comment #13 from Alexandre Julliard julliard@winehq.org --- (In reply to Paul Gofman from comment #11)
(In reply to Alexandre Julliard from comment #10)
Yes, CFLAGS take precedence. Don't add such flags in there.
I don't do that for my own builds, but the official builds do add this flag somewhere.
I'm not aware of any mingw version that enables cf-protection by default, is there such a thing?
gcc does not enable this flag by default either. If Wine is built with default configure options (no messing with flags at all), it was already ok. The flag is added explicitly in official builds.
No, it's apparently the default in Ubuntu 19.10, which is why it was broken there without any extra flags.
If some other packages add it to CFLAGS, then yes, these packages will have to be fixed.