else
argv.push_back(format("-O%d", binfo.optimize));
}
- if(binfo.threads)
+ if(binfo.threads && architecture->get_system()!="windows")
argv.push_back("-pthread");
if((comp.get_type()==Component::LIBRARY || comp.get_type()==Component::MODULE) && architecture->get_system()!="windows")
argv.push_back("-fPIC");
argv.push_back("-L"+i->str());
if(binfo.strip)
argv.push_back("-s");
- if(binfo.threads)
+ if(binfo.threads && architecture->get_system()!="windows")
argv.push_back("-pthread");
const Architecture &native_arch = builder.get_native_arch();