diff options
author | Robert Kern <robert.kern@gmail.com> | 2006-04-19 17:59:09 +0000 |
---|---|---|
committer | Robert Kern <robert.kern@gmail.com> | 2006-04-19 17:59:09 +0000 |
commit | 696853112da4073d64bbf69619e889e0d2f9f5d5 (patch) | |
tree | b794a4bad8e8590f57249f595e0f03c2a3709013 /numpy/distutils/fcompiler/absoft.py | |
parent | 51a6c983cedeceee316a5d7b2e99f6ebca65b518 (diff) | |
download | numpy-696853112da4073d64bbf69619e889e0d2f9f5d5.tar.gz |
Some fixes for Absoft Fortran 10.0 on 64-bit Linux. I would appreciate some double-checking from someone else on this!
Diffstat (limited to 'numpy/distutils/fcompiler/absoft.py')
-rw-r--r-- | numpy/distutils/fcompiler/absoft.py | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/numpy/distutils/fcompiler/absoft.py b/numpy/distutils/fcompiler/absoft.py index 8f4a913b4..2ce36d856 100644 --- a/numpy/distutils/fcompiler/absoft.py +++ b/numpy/distutils/fcompiler/absoft.py @@ -68,12 +68,23 @@ class AbsoftFCompiler(FCompiler): opt = FCompiler.get_library_dirs(self) d = os.environ.get('ABSOFT') if d: - opt.append(os.path.join(d,'lib')) + if self.get_version() >= '10.0': + # use shared libraries, the static libraries were not compiled -fPIC + prefix = 'sh' + else: + prefix = '' + if cpu.is_64bit(): + suffix = '64' + else: + suffix = '' + opt.append(os.path.join(d, '%slib%s' % (prefix, suffix))) return opt def get_libraries(self): opt = FCompiler.get_libraries(self) - if self.get_version() >= '8.0': + if self.get_version() >= '10.0': + opt.extend(['af90math', 'afio', 'af77math', 'U77']) + elif self.get_version() >= '8.0': opt.extend(['f90math','fio','f77math','U77']) else: opt.extend(['fio','f90math','fmath','U77']) |