Subject: | ExtUtils::F77 1.23 broke PDL build on MS Windows |
The trouble is in library order where -lquadmath must come after -lgfortran (the order was for some reason changed in 1.23)
Touble is IMO here:
- return( qq{"-L$dir" -L/usr/lib -lgfortran -lquadmath -lm} );
+ my $dir = gfortran_find_libdir($gfortran, 'gfortran');
+ gfortran_make_linkline($dir, "gfortran", "/usr/local/lib", "", '-lquadmath');
In gfortran_make_linkline()
you should probably better return
return( qq{"-L$dir" -L/usr/lib -l$lib $append -lm} );
Touble is IMO here:
- return( qq{"-L$dir" -L/usr/lib -lgfortran -lquadmath -lm} );
+ my $dir = gfortran_find_libdir($gfortran, 'gfortran');
+ gfortran_make_linkline($dir, "gfortran", "/usr/local/lib", "", '-lquadmath');
In gfortran_make_linkline()
sub gfortran_make_linkline {
my ($dir, $lib, $defaultdir, $defaultlib, $append) = @_;
$dir ||= $defaultdir;
$lib ||= $defaultlib;
$append ||= '';
return( qq{"-L$dir" $append -L/usr/lib -l$lib -lm} );
}
you should probably better return
return( qq{"-L$dir" -L/usr/lib -l$lib $append -lm} );