summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-perl/PDL/files/PDL-2.4.11-shared-hdf.patch')
-rw-r--r--dev-perl/PDL/files/PDL-2.4.11-shared-hdf.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/dev-perl/PDL/files/PDL-2.4.11-shared-hdf.patch b/dev-perl/PDL/files/PDL-2.4.11-shared-hdf.patch
new file mode 100644
index 000000000000..3cf22a31ce72
--- /dev/null
+++ b/dev-perl/PDL/files/PDL-2.4.11-shared-hdf.patch
@@ -0,0 +1,36 @@
+--- IO/HDF/Makefile.PL.orig 2012-06-16 18:43:24.000000000 +0100
++++ IO/HDF/Makefile.PL 2012-06-16 18:44:51.000000000 +0100
+@@ -63,20 +63,20 @@
+ # Look for the libs:
+ foreach my $libdir ( @HDF_lib_locations )
+ {
+- if (-e "$libdir/libdfalt.a" && !$found_df)
++ if (-e "$libdir/libdfalt.$Config{so}" && !$found_df)
+ {
+ $found_df = 1;
+ $hdf_lib_path = $libdir;
+ $hdf_libs = '-lmfhdfalt -ldfalt';
+- print "Found libdfalt.a at $libdir/libdfalt.a\n";
++ print "Found libdfalt.$Config{so} at $libdir/libdfalt.$Config{so}\n";
+ }
+
+- if (-e "$libdir/libdf.a" && !$found_df)
++ if (-e "$libdir/libdf.$Config{so}" && !$found_df)
+ {
+ $found_df = 1;
+ $hdf_lib_path = $libdir;
+ $hdf_libs = '-lmfhdf -ldf';
+- print "Found libdf.a at $libdir/libdf.a\n";
++ print "Found libdf.$Config{so} at $libdir/libdf.$Config{so}\n";
+ }
+
+ # Look for the szip library, which HDF >= 4.2r0 needs, but older versions don't!
+@@ -90,7 +90,7 @@
+
+ unless( defined( $hdf_lib_path ) )
+ {
+- $msg .= "Cannot find hdf library, libdf.a.\n"
++ $msg .= "Cannot find hdf library, libdf.$Config{so}.\n"
+ . "Please add the correct library path to Makefile.PL or install HDF\n";
+
+ }