https://bugs.winehq.org/show_bug.cgi?id=50257
--- Comment #40 from Jacek Caban jacek@codeweavers.com --- Note that you may use a different compiler for .dll.so (I guess you were using GCC and you may continue to do so) and use clang only for PE parts. That's what configure should do by default when it can't mingw and clang is found, but if you want to be explicit, it's something like:
configure CROSSCC=clang