aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/perl/perl-5.10.1/devel-ppport-ia64-optim.diff
blob: 98bdc109bf9ffd7846cac49a35f9e38bd9a69fb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From: Niko Tyni <ntyni@debian.org>
Subject: Work around an ICE on ia64
Closes: 548943

Temporarily work around an internal compiler error in Devel::PPPort
on ia64+gcc-4.3.


---
 ext/Devel-PPPort/Makefile.PL |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/ext/Devel-PPPort/Makefile.PL b/ext/Devel-PPPort/Makefile.PL
index 67eebc1..f1ef7a2 100644
--- a/ext/Devel-PPPort/Makefile.PL
+++ b/ext/Devel-PPPort/Makefile.PL
@@ -75,6 +75,13 @@ sub configure
     push @moreopts, INSTALLDIRS => ($] >= 5.007003 ? 'perl' : 'site');
   }
 
+
+  # temporary Debian hack, see http://bugs.debian.org/548943
+  require Config;
+  if ($Config::Config{archname} =~ /^ia64/) {
+    push @moreopts, OPTIMIZE => '-g -O0';
+  }
+
   if ($opt{'apicheck'}) {
     $PL_FILES{'apicheck_c.PL'} = 'apicheck.c';
     push @C_FILES, qw{ apicheck.c };
-- 
tg: (daf8b46..) debian/devel-ppport-ia64-optim (depends on: upstream)