summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.Merijn Brand <h.m.brand@xs4all.nl>2008-09-29 12:40:38 +0000
committerH.Merijn Brand <h.m.brand@xs4all.nl>2008-09-29 12:40:38 +0000
commite6a5675bfdfcb46527bc32747acf360c7ef91cfa (patch)
tree42311e3012cd3f35b4a4added5c5195a52e7e004
parent2e65e370d35678c61f33c1e7f90fd07d0254d085 (diff)
downloadperl-e6a5675bfdfcb46527bc32747acf360c7ef91cfa.tar.gz
Storable and HP-UX Optimizer don't like eachother on 5.8.x
Dropping optimization level for HP C-ANSI-C to +O1 won't do too much harm to all other builds, so keep it simple p4raw-id: //depot/perl@34441
-rw-r--r--MANIFEST1
-rw-r--r--ext/Storable/hints/hpux.pl10
2 files changed, 11 insertions, 0 deletions
diff --git a/MANIFEST b/MANIFEST
index d99cf05fb4..aae1a237c6 100644
--- a/MANIFEST
+++ b/MANIFEST
@@ -1054,6 +1054,7 @@ ext/Socket/t/Socket.t See if Socket works
ext/Storable/ChangeLog Storable extension
ext/Storable/hints/gnukfreebsd.pl Hint for Storable for named architecture
ext/Storable/hints/gnuknetbsd.pl Hint for Storable for named architecture
+ext/Storable/hints/hpux.pl Hint for Storable for named architecture
ext/Storable/hints/linux.pl Hint for Storable for named architecture
ext/Storable/Makefile.PL Storable extension
ext/Storable/MANIFEST Storable extension
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;
+ }