aboutsummaryrefslogtreecommitdiff
path: root/compilers.py
diff options
context:
space:
mode:
Diffstat (limited to 'compilers.py')
-rw-r--r--compilers.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/compilers.py b/compilers.py
index fbaf433..1e778d3 100644
--- a/compilers.py
+++ b/compilers.py
@@ -1056,6 +1056,11 @@ class GnuCCompiler(CCompiler):
'2': ['-Wall', '-Wpedantic', '-Winvalid-pch'],
'3' : ['-Wall', '-Wpedantic', '-Wextra', '-Winvalid-pch']}
+ 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']
@@ -1240,6 +1245,14 @@ class FortranCompiler():
def get_language(self):
return self.language
+ def get_pic_args(self):
+ if self.gcc_type == GCC_MINGW:
+ return [] # On Windows gcc defaults to fpic being always on.
+ return ['-fPIC']
+
+ def get_std_shared_lib_link_args(self):
+ return ['-shared']
+
def needs_static_linker(self):
return True