summaryrefslogtreecommitdiff
path: root/cpan/Digest-SHA
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2014-06-24 08:46:58 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2014-06-24 08:50:24 -0400
commit55149fe1eba76b5f9b1db01ec2e8e47bf7c2abbc (patch)
tree85566cbc7f8cbbb6a111a5d2e8024ca02e50ca61 /cpan/Digest-SHA
parentc23867c2bfc22f9d37ac8cd60ef076da8f734285 (diff)
downloadperl-55149fe1eba76b5f9b1db01ec2e8e47bf7c2abbc.tar.gz
HP-UX release wider match; also drop gcc opt level.
Diffstat (limited to 'cpan/Digest-SHA')
-rw-r--r--cpan/Digest-SHA/hints/hpux.pl28
1 files changed, 19 insertions, 9 deletions
diff --git a/cpan/Digest-SHA/hints/hpux.pl b/cpan/Digest-SHA/hints/hpux.pl
index e48609ebd5..e1ad05d718 100644
--- a/cpan/Digest-SHA/hints/hpux.pl
+++ b/cpan/Digest-SHA/hints/hpux.pl
@@ -1,15 +1,25 @@
# With +O2 this HP-UX cc compiler creates code which coredumps (Bus error)
# when running t/woodbury.t, but dropping to +O1 seems to dodge that.
#
-# This might turn out to be temporary, see:
+# Also gcc seems to have similar issues, so drop the opt also there.
+#
+# This was reported also at:
# https://rt.cpan.org/Ticket/Display.html?id=96498
-if ($Config{cc} eq 'cc' &&
- $Config{archname} eq 'PA-RISC2.0' &&
- $Config{ccversion} =~ /^B\.11\.11\./) {
- if (defined $self->{OPTIMIZE}) {
- $self->{OPTIMIZE} =~ s/\+O[2-9]/+O1/;
- $self->{OPTIMIZE} =~ s/ \+Onolimit//;
- } else {
- $self->{OPTIMIZE} = '+O1';
+# but the ticket was rejected since MSHELOR thinks Digest::SHA
+# is doing nothing wrong.
+if ($Config{ccversion} =~ /^B\.11\.*\./) {
+ if ($Config{cc} eq 'cc') {
+ if (defined $self->{OPTIMIZE}) {
+ $self->{OPTIMIZE} =~ s/\+O[2-9]/+O1/;
+ $self->{OPTIMIZE} =~ s/ \+Onolimit//;
+ } else {
+ $self->{OPTIMIZE} = '+O1';
+ }
+ } elsif ($Config{cc} =~ /gcc/) {
+ if (defined $self->{OPTIMIZE}) {
+ $self->{OPTIMIZE} =~ s/\-O[2-9]*/-O1/;
+ } else {
+ $self->{OPTIMIZE} = '-O1';
+ }
}
}