gentoo/dev-perl/PDL/files/PDL-2.87.0-fortran.patch
Sam James 95b7c07b2a
dev-perl/PDL: add 2.87.0
* Drop USE=threads. Tests fail to compile with USE=-threads with:
  ```
  Basic/SourceFilter/../../blib/arch/auto/PDL/Core/Core.so: undefined symbol: pdl_pthread_free at /usr/lib64/perl5/5.38/x86_64-linux/DynaLoader.pm line 206.
  ```

  and configure loudly warns too:
  ```
        pthread disabled in perldl.conf
PDL will be built without POSIX thread support.
        ==> *NOTE*: PDL threads are unrelated to perl threads (usethreads=y)!
        ==> Enabling perl threads will not help!
  ```

  Just drop it. I don't see the value in it here. See net-misc/curl's
  bd4d42f83c774c36bf879a5b7ec89d373546743e for the general rationale in killing
  USE=threads.

* Drop now-obsolete LTO filtering as it was fixed in the last release after
  Eli reported it upstream, yay!

Bug: https://bugs.gentoo.org/856406
Signed-off-by: Sam James <sam@gentoo.org>
2024-04-10 01:56:20 +01:00

27 lines
1.1 KiB
Diff

diff --git a/Libtmp/Minuit/Makefile.PL b/Libtmp/Minuit/Makefile.PL
index bd2c933..2268225 100644
--- a/Libtmp/Minuit/Makefile.PL
+++ b/Libtmp/Minuit/Makefile.PL
@@ -125,7 +125,7 @@ undef &MY::postamble; # suppress warning
$orig .= "FFLAGS = $hack_64bit $mycflags \$(OPTIMIZE)\n";
$orig .= join "\n",map {
("minuitlib/$_\$(OBJ_EXT): minuitlib/$_.f
- $mycompiler -c \$(FFLAGS) -o minuitlib/$_\$(OBJ_EXT) minuitlib/$_.f
+ \$(FC) \$(FFLAGS) -fPIC -c -o minuitlib/$_\$(OBJ_EXT) $mycflags minuitlib/$_.f
" )} @minuitfiles;
return $orig;
};
diff --git a/Libtmp/Slatec/Makefile.PL b/Libtmp/Slatec/Makefile.PL
index 443d53b..b4675f7 100644
--- a/Libtmp/Slatec/Makefile.PL
+++ b/Libtmp/Slatec/Makefile.PL
@@ -85,7 +85,7 @@ undef &MY::postamble; # suppress warning
$orig =~ s/:\s*slatec\.pd/: slatec.pd/;
$orig .= "FFLAGS = $hack_64bit $mycflags \$(OPTIMIZE)\n";
join "\n", $orig, map "$_\$(OBJ_EXT): $_.f
- $mycompiler -c \$(FFLAGS) -o $_\$(OBJ_EXT) $_.f", @slatecfiles;
+ \$(FC) \$(FFLAGS) -c -fPIC -o $_\$(OBJ_EXT) $mycflags $_.f", @slatecfiles;
};
# Remove i386 option for OS X recent versions for better build, dual arch does not work anyway