From: Mikko Rasa Date: Tue, 10 Jul 2012 09:26:16 +0000 (+0300) Subject: Don't use -fPIC on windows since it makes mingw emit a warning X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=d66acc8fb6b17f1f966838a5266a04be551a284e;p=builder.git Don't use -fPIC on windows since it makes mingw emit a warning --- 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();