https://bugs.winehq.org/show_bug.cgi?id=48161
--- Comment #23 from Paul Gofman gofmanp@gmail.com --- (In reply to Rosanne DiMesio from comment #21)
Attaching i586 and x86_64 build logs from the Fedora 31 5.0-rc1 packages.
So those unwanted flags are actually there in the logs. This is before configure:
[ 203s] + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'
And below in actual compiling too of course.
rpmbuild adds those distribution default flags, that should probably be addressed somehow in wine-devel.spec file, but I really never looked much into distribution build rules yet.