]> git.tdb.fi Git - builder.git/commitdiff
Don't use -fPIC on windows since it makes mingw emit a warning
authorMikko Rasa <tdb@tdb.fi>
Tue, 10 Jul 2012 09:26:16 +0000 (12:26 +0300)
committerMikko Rasa <tdb@tdb.fi>
Tue, 10 Jul 2012 09:26:16 +0000 (12:26 +0300)
source/gnucompiler.cpp

index 747d96386de501e00b49ffcd3eb2a09c2035d1aa..36903937546a678f07e59e4bc2f101ddcb47b474 100644 (file)
@@ -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();