https://bugs.winehq.org/show_bug.cgi?id=49942
--- Comment #8 from Sveinar Søpler cybermax@dexter.no --- (In reply to nvaert1986 from comment #7)
It is basically the same issue i get with World of Warcraft PTR when running
wine-staging-5.10'ish (or thereabouts).
I just double checked and it's definitely not compiled with mingw, as I do not have mingw nor crossdev on my system.
Do you know wheter it works with a more recent wine-staging version for you (like 5.17 or 5.18?) If so I'll file a bug at Gentoo, referencing to this bug here.
As i have not tested every possible combination of patches and tweaks to figure out how it all ties together, i know that WoW PTR does not work with anything older than wine-staging-5.13 (Ref. this patchset: https://github.com/wine-staging/wine-staging/commit/d2d0366ce5df254957a96bb6...)
Wine-staging-5.12 did not work. This is when NTDLL was converted to PE, but did not have the above patchset. You could (and can) still build wine --without-mingw, but for some reason it does not work.
There are some posts (cba to dig them all up) indicating that it has to do with copy protection of sorts (for some games). The conclusion should be that it could work up until wine-staging-5.11, but if you use wine-staging-5.13 or NEWER, you probably need to compile using --with-mingw.
Gentoo seems to have had this "force-disabled" due to some bug back with wine-4.7, so i cannot tell if its fixable by just editing your ebuild conf manually?
Could you try to install mingw-w64, then edit the ebuild (/var/db/package-manager/repos/wine/wine-staging-5.18.ebuild ?? or wherever it is) manually, and change the line:
--without-mingw # linux LDFLAGS leak in mingw32: bug #685172 to --with-mingw # linux LDFLAGS leak in mingw32: bug #685172
Just to see if it compiles?