This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
valgrind doesn't require that perl was built with -g, so remove the check.
authorNicholas Clark <nick@ccl4.org>
Wed, 19 Jun 2013 19:13:45 +0000 (21:13 +0200)
committerNicholas Clark <nick@ccl4.org>
Mon, 1 Jul 2013 09:13:03 +0000 (11:13 +0200)
C<make test.valgrind> will run quite happily on a perl built with
optimisation and without debugging symbols. So don't enforce -g.

Makefile.SH

index 9b8d73b..c1d31f4 100755 (executable)
@@ -936,8 +936,6 @@ linux*|darwin*)
 # Valgrind perl (currently Linux, Darwin only)
 
 perl.valgrind.config: config.sh
-       @echo "To build perl.valgrind you must Configure -Doptimize=-g -Uusemymalloc, checking..."
-       @$(MAKE) perl.config.dashg
        @echo "Checking usemymalloc='n' in config.sh..."
        @grep "^usemymalloc="    config.sh
        @grep "^usemymalloc='n'" config.sh >/dev/null || exit 1
@@ -949,11 +947,6 @@ esac
 
 $spitshell >>$Makefile <<'!NO!SUBS!'
 
-perl.config.dashg:
-       @echo "Checking optimize='-g' in config.sh..."
-       @grep "^optimize=" config.sh
-       @egrep "^optimize='(.*-g.*)'" config.sh >/dev/null || exit 1
-
 # Gprof Perl
 
 perl.config.dashpg: