When checking whether perl is built with -g in optimisation
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Tue, 18 Apr 2006 16:05:15 +0000 (16:05 +0000)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Tue, 18 Apr 2006 16:05:15 +0000 (16:05 +0000)
flags, use a more tolerant regexp, because we can now have
things like '-O2 -g'.

p4raw-id: //depot/perl@27891

Makefile.SH

index 6097954c685e599fda7528fcd1389dc32878530a..1ae047121d99c4d4eeae1b5127bf90fbef53600e 100644 (file)
@@ -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..."