aboutsummaryrefslogtreecommitdiff
path: root/compilers.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2015-08-30 21:35:20 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2015-08-30 21:35:20 +0300
commit4a06f6d399f31090a24e732c3e110b8d89a470f4 (patch)
tree559bb2314803320fb463978cd05f11d17809e485 /compilers.py
parent7ff0873b077407099b435133bf5193cd481b02bc (diff)
downloadmeson-4a06f6d399f31090a24e732c3e110b8d89a470f4.zip
meson-4a06f6d399f31090a24e732c3e110b8d89a470f4.tar.gz
meson-4a06f6d399f31090a24e732c3e110b8d89a470f4.tar.bz2
Do not use fpic on mingw as it is not needed.
Diffstat (limited to 'compilers.py')
-rw-r--r--compilers.py5
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']