http://bugs.winehq.org/show_bug.cgi?id=58621
--- Comment #2 from operendex@gmail.com --- (In reply to Alexandre Julliard from comment #1)
How exactly are you using it, and how did you check the results?
winegcc --fPIC -Wl,--wine-builtin -shared -o mydll.dll dll.spec dll.c
file mydll.dll.so outputs
ELF 64-bit LSB shared object, x86-64, ...
instead of
PE32+ executable for WINE (DLL), ...