X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgnucompiler.cpp;h=da579ba5d0c132caf0b7c09d17e87bd3281e762e;hb=000deb52a1374bcedfec5d201c53c1842438ceba;hp=cd7391f0277175578a22536e1bd3d5bb7a122368;hpb=e516e78510ad455eebc0e06645c9f12943117525;p=builder.git diff --git a/source/gnucompiler.cpp b/source/gnucompiler.cpp index cd7391f..da579ba 100644 --- a/source/gnucompiler.cpp +++ b/source/gnucompiler.cpp @@ -115,7 +115,7 @@ Task *GnuCompiler::run(const Target &target) const 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");