projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dede812
)
Storable's hints file shouldn't blanket set optimize to -O2 on Linux
author
Nicholas Clark
<nick@ccl4.org>
Tue, 27 Jan 2004 21:51:27 +0000
(21:51 +0000)
committer
Nicholas Clark
<nick@ccl4.org>
Tue, 27 Jan 2004 21:51:27 +0000
(21:51 +0000)
Only *drop* optimize to -O2 if it's -O3 on gcc on Linux
p4raw-id: //depot/perl@22238
ext/Storable/hints/linux.pl
patch
|
blob
|
history
diff --git
a/ext/Storable/hints/linux.pl
b/ext/Storable/hints/linux.pl
index
ed80f84
..
05661af
100644
(file)
--- a/
ext/Storable/hints/linux.pl
+++ b/
ext/Storable/hints/linux.pl
@@
-6,5
+6,10
@@
# 20011002 and 3.3, and in Redhat 7.1 with gcc 3.3.1. The failures
# happen only for unthreaded builds, threaded builds work okay.
use Config;
-$self->{OPTIMIZE} = '-O2';
+if ($Config{gccversion}) {
+ my $optimize = $Config{optimize};
+ if ($optimize =~ s/(^| )-O3( |$)/$1-O2$2/) {
+ $self->{OPTIMIZE} = $optimize;
+ }
+}