https://bugs.winehq.org/show_bug.cgi?id=48161
--- Comment #28 from Zebediah Figura z.figura12@gmail.com --- Thanks, that works well enough.
Based on https://build.opensuse.org/public/build/Emulators:Wine:Debian/xUbuntu_19.10/i586/wine-devel/_log we're correctly passing -fno-stack-protector (and not passing -fstack-protector-strong), but the compiled binaries still have stack protection code touching %gs. Paul says it's baked into gcc. What can we do about this?
Note that the Debian builds still have -fstack-protector-strong appended, probably from the CFLAGS: https://build.opensuse.org/public/build/Emulators:Wine:Debian/Debian_10/i586/wine-devel/_log. Based on the ".diff.gz" files (which may be the wrong ones; I'm not familiar with Debian packaging), I see the line
+export DEB_CFLAGS_MAINT_STRIP = -fstack-protector-strong
present in the Ubuntu file but not the Debian one.