summaryrefslogtreecommitdiff
path: root/ext/Storable/hints/hpux.pl
diff options
context:
space:
mode:
Diffstat (limited to 'ext/Storable/hints/hpux.pl')
-rw-r--r--ext/Storable/hints/hpux.pl10
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/Storable/hints/hpux.pl b/ext/Storable/hints/hpux.pl
new file mode 100644
index 0000000000..959d6fedf0
--- /dev/null
+++ b/ext/Storable/hints/hpux.pl
@@ -0,0 +1,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;
+ }