diff options
author | Robert Kern <robert.kern@gmail.com> | 2007-08-03 22:19:13 +0000 |
---|---|---|
committer | Robert Kern <robert.kern@gmail.com> | 2007-08-03 22:19:13 +0000 |
commit | 8092698a31f3cc41f5502f736db2c5863988893d (patch) | |
tree | 614f73411f295646cabea0ae4c788a2589f5edba /numpy/distutils/fcompiler/intel.py | |
parent | 5bd291e93a4885d4d176f2675c68a4baae8a0c80 (diff) | |
download | numpy-8092698a31f3cc41f5502f736db2c5863988893d.tar.gz |
* Allow an Intel Fortran 10.0 for 64-bit version string that I've seen in the wild.
* Use -fPIC instead of -KPIC for said wild compiler.
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(): |