Skip to content

Commit

Permalink
comparison fix issue #9
Browse files Browse the repository at this point in the history
  • Loading branch information
karlglazebrook committed Jan 27, 2020
1 parent 07dbf60 commit 7ce59d3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
ExtUtils::F77 Changes list
--------------------------

v1.25 released Jan 27th 2020
---------------------------

* Fix of version number comparison in F77.pm link_gnufortran_compiler routine

v1.24 released Jul 21st 2019
---------------------------

Expand Down
5 changes: 3 additions & 2 deletions F77.pm
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use Text::ParseWords;
use File::Which qw(which);
use List::Util qw(first);

our $VERSION = "1.24";
our $VERSION = "1.25";
our $DEBUG;

sub debug { return if !$DEBUG; warn @_ }
Expand Down Expand Up @@ -641,7 +641,8 @@ sub link_gnufortran_compiler {
debug "ExtUtils::F77: $compiler version $version.$3\n";
# Sigh special case random extra gfortran libs to avoid PERL_DL_NONLAZY meltdowns. KG 25/10/2015
my $append = "";
if ( $Config{osname} =~ /darwin/ && $Config{osvers} >= 14
my $osvers = (split(/\./,$Config{osvers}))[0]; # Extract first digit in X.Y.Z version numbers
if ( $Config{osname} =~ /darwin/ && $osvers >= 14
&& $compiler eq 'gfortran' && $version >= 4.9 ) {
# Add extra libs for gfortran versions >= 4.9 and OS X
$append = "-lgcc_ext.10.5 -lgcc_s.10.5 -lquadmath";
Expand Down

0 comments on commit 7ce59d3

Please sign in to comment.