kezhou2 / a-dda

Automatically exported from code.google.com/p/a-dda
0 stars 0 forks source link

Automatic detection of correct GNU fortran compiler #122

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently GNU compiler options in the Makefile assume the presence of g77. 
However, since GCC version 4, g77 is replaced by gfortran. So the following 
should be done:
1) the default option for GNU compilers in the Makefile should be using 
gfortran instead of g77.
2) an automatic fallback to g77 (when gfortran is not available) should be 
implemented.

The first part seems to require only the modification of two lines:
"CF    := g77" -> "CF    := gfortran"
"FLIBS += -lg2c" -> "FLIBS += -lgfortran"
See the following diff for implementation (not on the most recent version of 
the Makefile)
http://code.google.com/p/a-dda/source/diff?spec=svn1005&old=1005&r=1004&format=s
ide&path=%2Ftrunk%2Fsrc%2FMakefile

So the latter can be regarded as a workaround, while the issue is not fixed.

Original issue reported on code.google.com by yurkin on 12 Jan 2011 at 7:20

GoogleCodeExporter commented 9 years ago
Fixed in r1040.

Original comment by yurkin on 27 May 2011 at 5:11

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r1040.

Original comment by yurkin on 27 May 2011 at 1:26