https://bugs.winehq.org/show_bug.cgi?id=52328
--- Comment #3 from Saulius K. saulius2@gmail.com --- Umm, after I append `-lgcc` to cmd-line, the binary gets built:
--- snip --- $ tools/winegcc/winegcc.exe -o dlls/advapi32/tests/advapi32_test.exe --wine-objdir . -Wl,--disable-stdcall-fixup -fasynchronous-unwind-tables -mno-cygwin dlls/advapi32/tests/cred.o dlls/advapi32/tests/crypt.o dlls/advapi32/tests/crypt_lmhash.o dlls/advapi32/tests/crypt_md4.o dlls/advapi32/tests/crypt_md5.o dlls/advapi32/tests/crypt_sha.o dlls/advapi32/tests/eventlog.o dlls/advapi32/tests/lsa.o dlls/advapi32/tests/perf.o dlls/advapi32/tests/registry.o dlls/advapi32/tests/security.o dlls/advapi32/tests/service.o dlls/advapi32/tests/testlist.o dlls/advapi32/tests/rsrc.res dlls/ole32/libole32.a dlls/advapi32/libadvapi32.a dlls/winecrt0/libwinecrt0.a dlls/msvcrt/libmsvcrt.a dlls/kernel32/libkernel32.a dlls/ntdll/libntdll.a -lgcc
$ ls -l dlls/advapi32/tests/advapi32_test.exe -rwxr-xr-x 1 saukrs None 1696330 Jan 3 19:27 dlls/advapi32/tests/advapi32_test.exe --- snip ---
Setting component to "advapi32" as the best guess.