summaryrefslogtreecommitdiff
path: root/numpy/distutils/fcompiler/intel.py
diff options
context:
space:
mode:
authorRobert Kern <robert.kern@gmail.com>2007-12-04 05:33:42 +0000
committerRobert Kern <robert.kern@gmail.com>2007-12-04 05:33:42 +0000
commitffd9adc11730b5957adcee9c0f2ae6f30b0f9ae6 (patch)
tree8bfc9c2b65c59d8a065da664f149e4acf6d8c4f8 /numpy/distutils/fcompiler/intel.py
parentec6e9424d0c194323faeb43a2197daf73ecf1415 (diff)
downloadnumpy-ffd9adc11730b5957adcee9c0f2ae6f30b0f9ae6.tar.gz
The PIC flag changed in the 10 version of the Intel Fortran compiler.
Diffstat (limited to 'numpy/distutils/fcompiler/intel.py')
-rw-r--r--numpy/distutils/fcompiler/intel.py18
1 files changed, 8 insertions, 10 deletions
diff --git a/numpy/distutils/fcompiler/intel.py b/numpy/distutils/fcompiler/intel.py
index a551f7b1b..9bfd541b2 100644
--- a/numpy/distutils/fcompiler/intel.py
+++ b/numpy/distutils/fcompiler/intel.py
@@ -40,12 +40,18 @@ class IntelFCompiler(BaseIntelFCompiler):
'ranlib' : ["ranlib"]
}
- pic_flags = ['-KPIC']
+ pic_flags = ['-fPIC']
module_dir_switch = '-module ' # Don't remove ending space!
module_include_switch = '-I'
def get_flags(self):
- opt = self.pic_flags + ["-cm"]
+ v = self.get_version()
+ if v >= '10.0':
+ # Use -fPIC instead of -KPIC.
+ pic_flags = ['-fPIC']
+ else:
+ pic_flags = ['-KPIC']
+ opt = pic_flags + ["-cm"]
return opt
def get_flags_free(self):
@@ -144,14 +150,6 @@ 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():