diff options
author | Pearu Peterson <pearu.peterson@gmail.com> | 2004-01-31 22:02:30 +0000 |
---|---|---|
committer | Pearu Peterson <pearu.peterson@gmail.com> | 2004-01-31 22:02:30 +0000 |
commit | 271fc73f95abab3a7962169cb54c1ba1ddba50e1 (patch) | |
tree | 1706a106c346be104465e157bc7d55dabb808555 /scipy_distutils/gnufcompiler.py | |
parent | 85ac6be83d87d902fc1dad3e00752fcd6c7ccd7d (diff) | |
download | numpy-271fc73f95abab3a7962169cb54c1ba1ddba50e1.tar.gz |
fcompiler classes
Diffstat (limited to 'scipy_distutils/gnufcompiler.py')
-rw-r--r-- | scipy_distutils/gnufcompiler.py | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/scipy_distutils/gnufcompiler.py b/scipy_distutils/gnufcompiler.py index c8cbe1d1d..9fa686dd1 100644 --- a/scipy_distutils/gnufcompiler.py +++ b/scipy_distutils/gnufcompiler.py @@ -31,13 +31,10 @@ class GnuFCompiler(FCompiler): 'archiver' : ["ar", "-cr"], 'ranlib' : ["ranlib"], } - - - def get_flags(self): - opt = FCompiler.get_flags(self) - if os.name != 'nt': - opt.append('-fPIC') - return opt + module_dir_switch = None + module_include_switch = None + if os.name != 'nt': + pic_flags = ['-fPIC'] def get_linker_so(self): # win32 linking should be handled by standard linker @@ -115,6 +112,7 @@ class GnuFCompiler(FCompiler): break return opt march_flag = 1 + # 0.5.25 corresponds to 2.95.x if self.get_version() == '0.5.26': # gcc 3.0 if cpu.is_AthlonK6(): opt.append('-march=k6') @@ -166,7 +164,7 @@ class GnuFCompiler(FCompiler): return opt if __name__ == '__main__': - from distutils import log + from scipy_distutils import log log.set_verbosity(2) from fcompiler import new_fcompiler compiler = new_fcompiler(compiler='gnu') |