summaryrefslogtreecommitdiff
path: root/numpy/distutils/fcompiler/gnu.py
diff options
context:
space:
mode:
authorPearu Peterson <pearu.peterson@gmail.com>2006-10-08 09:30:17 +0000
committerPearu Peterson <pearu.peterson@gmail.com>2006-10-08 09:30:17 +0000
commit45e92465815e16d02a611005b61abc6a65f6b91c (patch)
tree7cb75b38697c04be28bac4a388a5c8b71db5373c /numpy/distutils/fcompiler/gnu.py
parentcc7fd3d7d62f4bc6ee17456d282475781204f98e (diff)
downloadnumpy-45e92465815e16d02a611005b61abc6a65f6b91c.tar.gz
numpy.distutils: use language flag or source file extension to select default f77 or f90 compiler.
Diffstat (limited to 'numpy/distutils/fcompiler/gnu.py')
-rw-r--r--numpy/distutils/fcompiler/gnu.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/numpy/distutils/fcompiler/gnu.py b/numpy/distutils/fcompiler/gnu.py
index cd272b885..6e0f1895d 100644
--- a/numpy/distutils/fcompiler/gnu.py
+++ b/numpy/distutils/fcompiler/gnu.py
@@ -28,7 +28,7 @@ class GnuFCompiler(FCompiler):
executables = {
'version_cmd' : [fc_exe,"--version"],
'compiler_f77' : [fc_exe, "-g", "-Wall","-fno-second-underscore"],
- 'compiler_f90' : None,
+ 'compiler_f90' : None, # Use --fcompiler=gnu95 for f90 codes
'compiler_fix' : None,
'linker_so' : [fc_exe, "-g", "-Wall"],
'archiver' : ["ar", "-cr"],
@@ -50,6 +50,8 @@ class GnuFCompiler(FCompiler):
g2c = 'g2c'
+ suggested_f90_compiler = 'gnu95'
+
#def get_linker_so(self):
# # win32 linking should be handled by standard linker
# # Darwin g77 cannot be used as a linker.