Codebase list libextutils-f77-perl / febd351
Fix typo in docs and compiler version-parsing regex. In the version parsing, we need to escape the version dots so that they don't match *everything*. And make the captures (\d+) so that they capture multi-digit version numbers. Derek Lamb authored 3 years ago Ed J committed 3 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
635635 my $compiler = find_in_path( @try );
636636 return () unless defined $compiler;
637637 # Get compiler version number
638 my @t =`$compiler --version`; $t[0] =~ /(\d+).(\d)+.(\d+)/;
638 my @t =`$compiler --version`; $t[0] =~ /(\d+)\.(\d+)\.(\d+)/;
639639 my $version = "$1.$2"; # Major version number
640640 debug "ExtUtils::F77: $compiler version $version.$3\n";
641641 # Sigh special case random extra gfortran libs to avoid PERL_DL_NONLAZY meltdowns. KG 25/10/2015
670670 of Fortran runtime libraries. The problem is their location
671671 and name varies with each OS/compiler combination! It was originally
672672 developed to make building and installation of the L<PGPLOT> module easier,
673 which links to the pgplot Fortran graphics library. It is now used by a numnber
673 which links to the pgplot Fortran graphics library. It is now used by a number
674674 of perl modules.
675675
676676 This module tries to implement a simple