File PDL-2.4.7.diff of Package perl-PDL
--- ./Basic/Core/pdlthread.h.orig 2012-05-16 11:05:14.000000000 +0000
+++ ./Basic/Core/pdlthread.h 2012-06-11 12:20:11.000000000 +0000
@@ -32,7 +32,7 @@ typedef struct pdl_errorinfo {
typedef struct pdl_thread {
pdl_errorinfo *einfo;
#ifdef PDL_THREAD_DEBUG
- int magicno;
+ unsigned int magicno;
#endif
int gflags; /* Flags about this struct */
int ndims; /* Number of dimensions threaded over */
--- ./Lib/Slatec/Makefile.PL.orig 2012-01-02 23:56:28.000000000 +0000
+++ ./Lib/Slatec/Makefile.PL 2012-06-11 12:20:11.000000000 +0000
@@ -135,6 +135,7 @@ WriteMakefile(
sub MY::postamble {
$mycompiler = $f77->compiler();
$mycflags = $f77->cflags();
+ $mycflags .= " -fPIC";
my $orig = pdlpp_postamble_int(@::pack);
$hack_64bit = ($Config{archname}=~m/x86_64/ ?" -fPIC " : "");
$orig =~ s/:\s*slatec\.pd/: slatec.pd/;
--- ./perldl.conf.orig 2012-05-16 11:05:14.000000000 +0000
+++ ./perldl.conf 2012-06-11 12:20:11.000000000 +0000
@@ -215,7 +215,7 @@
# Do we build PDL::IO::Browser?
# default -> do not build
#
- WITH_IO_BROWSER => 0,
+ WITH_IO_BROWSER => 1,
# Quiet Astro::FITS::Header warnings for PDL build process by default
# Eventually would be better to set undef by default, and have the
--- ./IO/Browser/Makefile.PL.orig 2012-06-11 12:57:54.000000000 +0000
+++ ./IO/Browser/Makefile.PL 2012-06-11 12:58:01.000000000 +0000
@@ -21,7 +21,7 @@ use lib $libdir;
use Devel::CheckLib;
-require PDL::Core::Dev;
+#require PDL::Core::Dev;
PDL::Core::Dev->import();
@pack = (["browser.pd",Browser,PDL::IO::Browser]);