summaryrefslogtreecommitdiff
path: root/ext/Storable/hints/hpux.pl
blob: 959d6fedf04498365d0431b2a9306c82ea7b6808 (plain)
1
2
3
4
5
6
7
8
9
10
# HP C-ANSI-C has problems in the optimizer for 5.8.x (not for 5.11.x)
# So drop to -O1 for Storable

use Config;

unless ($Config{gccversion}) {
    my $optimize = $Config{optimize};
    $optimize =~ s/(^| )[-+]O[2-9]( |$)/$1+O1$2/ and
	$self->{OPTIMIZE} = $optimize;
    }