From 4a06f6d399f31090a24e732c3e110b8d89a470f4 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sun, 30 Aug 2015 21:35:20 +0300 Subject: [PATCH] Do not use fpic on mingw as it is not needed. --- compilers.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/compilers.py b/compilers.py index 134edda22..37b8c09f0 100644 --- a/compilers.py +++ b/compilers.py @@ -1057,6 +1057,11 @@ class GnuCCompiler(CCompiler): else: self.warn_args = GnuCCompiler.old_warn + def get_pic_args(self): + if self.gcc_type == GCC_MINGW: + return [] # On Window gcc defaults to fpic being always on. + return ['-fPIC'] + def get_always_args(self): return ['-pipe']