Guys, I'm improve this patch basing on GCC specs: https://github.com/Alexpux/MINGW-packages/blob/master/mingw-w64-clang/clang-mingw-driver.patch It works in general but need to test. http://reviews.llvm.org/D3420