summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Dougherty <doughera@fractal.phys.lafayette.edu>1997-03-06 11:15:47 -0500
committerChip Salzenberg <chip@atlantic.net>1997-03-07 04:01:12 +1200
commit59ae47780c168857b216412f8354d10ae6dd0b61 (patch)
treeaa5dbfb3aa66bf7586ea8a69bbf7e50ffc4b7cc7
parent2f525a329506abe067c4ec9d4c7ae13d8b223081 (diff)
downloadperl-59ae47780c168857b216412f8354d10ae6dd0b61.tar.gz
Allow './Configure -Uoptimize'
Subject: Re: miniperl core dumps during build of 5.003_91 on Unisys SVR4 On Thu, 6 Mar 1997, Alan Burlison wrote: > In-Reply-To: <memo.119650@cix.compulink.co.uk> > > miniperl dumps core during the build on Unisys SVR4 version 1.4. > Apparently there is a bug in the C compiler optimiser in this version > of the OS. I'll attribute this problem to that, & just turn off Our record in this regard is mixed, at best, I think. (Some problems that appeared to be optimizer problems have been made to go away by fixing possibly-related bugs in the perl source.) Still, if it works . . . . > debugging. I am using Configure -des -Doptimize=' ' to do that. Is > this the best way? -Uoptimize causes Configure to die. Oops. That's not nice. The way I do this is sh Configure -Doptimize=none though your way is quite fine too. In general, there's no particular reason to expect optimize='undef' to do what you want, but it's not hard to handle it gracefully either, so we could apply this low-urgency but low-risk patch: p5p-msgid: Pine.SOL.3.95q.970306110532.11070A-100000@fractal.lafayette.edu private-msgid: Pine.SOL.3.95q.970306110532.11070A-100000@fractal.lafayette.
-rwxr-xr-xConfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/Configure b/Configure
index 86733d37b0..5392c7985f 100755
--- a/Configure
+++ b/Configure
@@ -3557,7 +3557,7 @@ $rm -f testcpp.c testcpp.out
: determine optimize, if desired, or use for debug flag also
case "$optimize" in
-' ') dflt='none';;
+' '|$undef) dflt='none';;
'') dflt='-O';;
*) dflt="$optimize";;
esac