This fixes linking when WinMain() is in a library (such as libmspcore)
and shouldn't be harmful when it isn't.
bool static_link_ok = (binfo.libmode<=BuildInfo::STATIC);
+ if(architecture->get_system()=="windows" && architecture->get_cross_prefix().find("mingw")!=string::npos)
+ argv.push_back("-lmingw32");
+
const Target::Dependencies &depends = target.get_dependencies();
for(Target::Dependencies::const_iterator i=depends.begin(); i!=depends.end(); ++i)
{