Subject: | [Win32] F77.pm does not accommodate gcc-5.x.x |
Hi,
Now that gcc-5.x.x is up and about, we need the following small patch to F77.pm:
#########################################
--- F77.pm_orig 2016-05-28 15:58:54 +1000
+++ F77.pm 2016-05-28 16:12:45 +1000
@@ -65,10 +65,10 @@
$fallback_compiler = 'GFortran';
}
elsif($Config{gccversion}) {
- # Could be either gcc-4.x.x or gcc-3.x.x
+ # Different fortran compiler for gcc-4.x.x (and later) versus gcc-3.x.x
$gcc = 'gcc';
@version = split /\./, $Config{gccversion};
- $fallback_compiler = $version[0] == 4 ? 'GFortran' : 'G77';
+ $fallback_compiler = $version[0] >= 4 ? 'GFortran' : 'G77';
$gfortran = 'gfortran';
}
else {
#########################################
Cheers,
Rob