diff options
Diffstat (limited to 'numpy/distutils/fcompiler/intel.py')
-rw-r--r-- | numpy/distutils/fcompiler/intel.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/numpy/distutils/fcompiler/intel.py b/numpy/distutils/fcompiler/intel.py index d64c6b5ae..a551f7b1b 100644 --- a/numpy/distutils/fcompiler/intel.py +++ b/numpy/distutils/fcompiler/intel.py @@ -130,7 +130,7 @@ class IntelEM64TFCompiler(IntelFCompiler): compiler_aliases = () description = 'Intel Fortran Compiler for EM64T-based apps' - version_match = intel_version_match('EM64T-based') + version_match = intel_version_match('EM64T-based|Intel\\(R\\) 64') possible_executables = ['ifort', 'efort', 'efc'] @@ -144,6 +144,14 @@ class IntelEM64TFCompiler(IntelFCompiler): 'ranlib' : ["ranlib"] } + def get_flags(self): + v = self.get_version() + if v >= '10.0': + # Use -fPIC instead of -KPIC. + return ['-fPIC', '-cm'] + else: + return IntelFCompiler.get_flags(self) + def get_flags_arch(self): opt = [] if cpu.is_PentiumIV() or cpu.is_Xeon(): |