X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgnucompiler.cpp;h=36903937546a678f07e59e4bc2f101ddcb47b474;hb=5881b8499dc159564d2f69c3b037e16b4d1af4db;hp=747d96386de501e00b49ffcd3eb2a09c2035d1aa;hpb=2aaad259f2dff58c1e909f1e6d83961e78fd7d3e;p=builder.git diff --git a/source/gnucompiler.cpp b/source/gnucompiler.cpp index 747d963..3690393 100644 --- a/source/gnucompiler.cpp +++ b/source/gnucompiler.cpp @@ -69,7 +69,7 @@ Task *GnuCompiler::run(const Target &target) const } if(binfo.threads) argv.push_back("-pthread"); - if(comp.get_type()==Component::LIBRARY) + if(comp.get_type()==Component::LIBRARY && architecture->get_system()!="windows") argv.push_back("-fPIC"); const Architecture &native_arch = builder.get_native_arch();