Do not use fpic on mingw as it is not needed.

pull/250/head
Jussi Pakkanen 9 years ago
parent 7ff0873b07
commit 4a06f6d399
  1. 5
      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']

Loading…
Cancel
Save