Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37718543
en ru br
ALT Linux repositórios
S:2.084-alt1.1
3.0: 2.4.2-alt1

Group :: Desenvolvimento/Outros
RPM: perl-PDL

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: PDL-2.6.0.90-Compile-Slatec-code-as-PIC.patch
Download


From ab4b5fcf70149ce6e3f7fb01e6d2e91d8db37acc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
Date: Mon, 14 Oct 2013 11:04:02 +0200
Subject: [PATCH] Compile Slatec code as PIC
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
This code fails to build on armv7. There was a hack for amd64 to use -fPIC.
The objects are used to produce DSO, so they should be PIC always. See
Debian commit cbca21383acb3e2769da7f886f2aec44d3613675.
Signed-off-by: Petr Písař <ppisar@redhat.com>
---
 Libtmp/Minuit/Makefile.PL | 3 +--
 Libtmp/Slatec/Makefile.PL | 3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)
diff -up PDL-2.008/Libtmp/Minuit/Makefile.PL.orig PDL-2.008/Libtmp/Minuit/Makefile.PL
--- PDL-2.008/Libtmp/Minuit/Makefile.PL.orig	2015-05-25 10:40:25.504280235 +0200
+++ PDL-2.008/Libtmp/Minuit/Makefile.PL	2015-05-25 10:41:31.262090495 +0200
@@ -136,13 +136,12 @@ undef &MY::postamble; # suppress warning
         my $mycompiler     = $f77->compiler();
         my $mycflags       = $f77->cflags();
 	my $orig = pdlpp_postamble_int(@pack);
-	my $hack_64bit = ($Config{archname}=~m/x86_64/ ?" -fPIC " : "");
 	$orig =~ s/:\s*minuit\.pd/: minuit.pd/;
 	$orig .= join "\n",map {
 	    ("
 
 minuitlib/$_\$(OBJ_EXT): minuitlib/$_.f 
-	$mycompiler -c $hack_64bit -o minuitlib/$_\$(OBJ_EXT) $mycflags minuitlib/$_.f
+	$mycompiler -c -fPIC -o minuitlib/$_\$(OBJ_EXT) $mycflags minuitlib/$_.f
 " )} @minuitfiles;
 
 	if (!defined($PDL::Config{MINUIT_LIB})){
diff -up PDL-2.008/Libtmp/Slatec/Makefile.PL.orig PDL-2.008/Libtmp/Slatec/Makefile.PL
--- PDL-2.008/Libtmp/Slatec/Makefile.PL.orig	2015-05-25 10:41:48.991308954 +0200
+++ PDL-2.008/Libtmp/Slatec/Makefile.PL	2015-05-25 10:42:20.934702247 +0200
@@ -126,13 +126,12 @@ undef &MY::postamble; # suppress warning
         my $mycompiler     = $f77->compiler();
         my $mycflags       = $f77->cflags();
 	my $orig = pdlpp_postamble_int(@pack);
-	my $hack_64bit = ($Config{archname}=~m/x86_64/ ?" -fPIC " : "");
 	$orig =~ s/:\s*slatec\.pd/: slatec.pd/;
 	$orig .join "\n",map {
 ("
 
 slatec/$_\$(OBJ_EXT): slatec/$_.f 
-	$mycompiler -c $hack_64bit -o slatec/$_\$(OBJ_EXT) $mycflags slatec/$_.f
+	$mycompiler -c -fPIC -o slatec/$_\$(OBJ_EXT) $mycflags slatec/$_.f
 " )} @slatecfiles;
  
 };
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009