]> git.tdb.fi Git - builder.git/blobdiff - source/gnucompiler.cpp
The mingw port of gcc doesn't recognize -pthread
[builder.git] / source / gnucompiler.cpp
index ec1959afae67cfaf3a3f4a82e25e8a8c748f1a7a..5f69c0dca49ad5585153398cce07a20de07c9f32 100644 (file)
@@ -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");