else
argv.push_back(format("-O%d", binfo.optimize));
}
- if(binfo.threads && architecture->get_system()!="windows")
+ if(binfo.threads && architecture->get_system()!="windows" && architecture->get_system()!="darwin")
argv.push_back("-pthread");
if((comp.get_type()==Component::LIBRARY || comp.get_type()==Component::MODULE) && architecture->get_system()!="windows")
argv.push_back("-fPIC");