https://bugs.winehq.org/show_bug.cgi?id=41712
--- Comment #5 from Artem S. Tashkinov aros@gmx.com --- Alexander can make it work at least for non-core libraries.
https://stackoverflow.com/questions/46512325/undefined-references-with-link-...
gcc-ar must be used instead of ar when creating *.a archives.