From d66acc8fb6b17f1f966838a5266a04be551a284e Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Tue, 10 Jul 2012 12:26:16 +0300 Subject: [PATCH] Don't use -fPIC on windows since it makes mingw emit a warning --- source/gnucompiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.45.2