From: Mikko Rasa Date: Fri, 24 May 2013 17:09:21 +0000 (+0300) Subject: The mingw port of gcc doesn't recognize -pthread X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=33202532d4afbebdef4047f6bd216eca22d27813;p=builder.git The mingw port of gcc doesn't recognize -pthread --- diff --git a/source/gnucompiler.cpp b/source/gnucompiler.cpp index ec1959a..5f69c0d 100644 --- a/source/gnucompiler.cpp +++ b/source/gnucompiler.cpp @@ -121,7 +121,7 @@ Task *GnuCompiler::run(const Target &target) const 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"); diff --git a/source/gnulinker.cpp b/source/gnulinker.cpp index 02708cc..9ae5d64 100644 --- a/source/gnulinker.cpp +++ b/source/gnulinker.cpp @@ -188,7 +188,7 @@ Task *GnuLinker::Linker::run(const Target &target) const 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();