diff options
Diffstat (limited to 'compilers.py')
-rw-r--r-- | compilers.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compilers.py b/compilers.py index 134edda..37b8c09 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'] |