Subject: | MinGW now needs to link to libquadmath.a |
Hi,
With the latest mingw64-runtime (version 4) libgfortran.a contains some symbols that are resolved by libquadmath.a.
Hence this patch to F77.pm in ExtUtils-F77-1.17_01:
###############################
--- F77.pm_orig 2015-05-18 20:00:56 +1000
+++ F77.pm 2015-05-18 20:03:29 +1000
@@ -122,7 +122,7 @@
} else {
$dir = "/usr/local/lib";
}
- return( "-L$dir -L/usr/lib -lgfortran -lm" );
+ return( "-L$dir -L/usr/lib -lgfortran -lquadmath -lm" );
};
$F77config{MinGW}{G77}{Trail_} = 1;
###############################
Note that if libquadmath.a is non-locatable, the link is automatically removed by EU::MM - so this change will not break existing builds that use the older runtime (and therefore don't need to find and link to libquadmath.a).
Without this patch PDL::Slatec will fail to build.
Cheers,
Rob