This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Disable ODBM (via i_dbm) in HP-UX, seems to be buggy.
[perl5.git] / cpan / Digest-SHA / hints / hpux.pl
1 # With +O2 this HP-UX cc compiler creates code which coredumps (Bus error)
2 # when running t/woodbury.t, but dropping to +O1 seems to dodge that.
3 if ($Config{cc} eq 'cc' &&
4     $Config{archname} eq 'PA-RISC2.0' &&
5     $Config{ccversion} =~ /^B\.11\.11\./) {
6   if (defined $self->{OPTIMIZE}) {
7     $self->{OPTIMIZE} =~ s/\+O[2-9]/+O1/;
8     $self->{OPTIMIZE} =~ s/ \+Onolimit//;
9   } else {
10     $self->{OPTIMIZE} = '+O1';
11   }
12 }