https://bugs.winehq.org/show_bug.cgi?id=56483
Ilya ilya77105@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ilya77105@gmail.com
--- Comment #2 from Ilya ilya77105@gmail.com --- Can also confirm this bug. I played with winelib and figured out this pattern: 1. Wine without wow64. If app built with -m32 key, then wrapper script correctly starts the app.
2. Wine without wow64. If app built with -m64 key or without any keys, then wrapper script fails. Deep inside Wine logs there is "wrong ELF class: ELFCLASS64" error. Can be reproduced with `WINEDEBUG=warn+all wine a.out.so 2>&1 >/dev/null | grep "dlopen"` However, resulting .so file can be run with wine64.
3. Wine with wow64. App can't be built with -m32 anymore (winegcc fails for some header). However, with -m64 keys or without any keys app correctly builds, and wrapper script works (maybe because wine executable is symlinked to wine64 in wow64 Wine build).