summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-04-18 16:05:15 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-04-18 16:05:15 +0000
commitfdb8bc18a6a21eb57ba592da2f8999c35afc2d40 (patch)
treecd3bf4304314ffa84181a14b662528b12f281f43
parentfee0a0f7c91325f3e0c5d30288c0696c82a600ae (diff)
downloadperl-fdb8bc18a6a21eb57ba592da2f8999c35afc2d40.tar.gz
When checking whether perl is built with -g in optimisation
flags, use a more tolerant regexp, because we can now have things like '-O2 -g'. p4raw-id: //depot/perl@27891
-rw-r--r--Makefile.SH4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.SH b/Makefile.SH
index 6097954c68..1ae047121d 100644
--- a/Makefile.SH
+++ b/Makefile.SH
@@ -679,8 +679,8 @@ perl.valgrind.config: config.sh
perl.config.dashg:
@echo "Checking optimize='-g' in config.sh..."
- @grep "^optimize=" config.sh
- @egrep "^optimize='(-g|.*-g[1-3].*)'" config.sh >/dev/null || exit 1
+ @grep "^optimize=" config.sh
+ @egrep "^optimize='(.*-g.*)'" config.sh >/dev/null || exit 1
perl.third.config: config.sh
@echo "To build perl.third you must Configure -Doptimize=-g -Uusemymalloc, checking..."