diff options
author | Pearu Peterson <pearu.peterson@gmail.com> | 2004-04-20 08:22:20 +0000 |
---|---|---|
committer | Pearu Peterson <pearu.peterson@gmail.com> | 2004-04-20 08:22:20 +0000 |
commit | bd392730804a017aa87df2bc4cb895ea7f43b686 (patch) | |
tree | 4c56e5b9e2a66838404e834ba60965f4ce771464 | |
parent | 3cb02b56a10d3fe8cf6a7ae7b36e9a2f52661c2e (diff) | |
download | numpy-bd392730804a017aa87df2bc4cb895ea7f43b686.tar.gz |
Absoft: using 'f77 -K shared' for building shared libraries and -fpic for compiling codes when version >=8.2.
-rw-r--r-- | scipy_distutils/absoftfcompiler.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scipy_distutils/absoftfcompiler.py b/scipy_distutils/absoftfcompiler.py index 5f8e3b5be..eccb13294 100644 --- a/scipy_distutils/absoftfcompiler.py +++ b/scipy_distutils/absoftfcompiler.py @@ -23,13 +23,11 @@ class AbsoftFCompiler(FCompiler): 'compiler_f77' : ["f77"], 'compiler_fix' : ["f90"], 'compiler_f90' : ["f90"], - 'linker_so' : ["f77","-shared"], + 'linker_so' : ["f77","-K","shared"], 'archiver' : ["ar", "-cr"], 'ranlib' : ["ranlib"] } - if os.name != 'nt': - pic_flags = ['-fpic'] module_dir_switch = None module_include_switch = '-p' @@ -51,6 +49,9 @@ class AbsoftFCompiler(FCompiler): opt = FCompiler.get_flags(self) if os.name != 'nt': opt.extend(['-s']) + if self.get_version(): + if self.get_version()>='8.2': + opt.append('-fpic') return opt def get_flags_f77(self): |