This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Subject: optimize matching -g still enables -DDEBUGING
authorH.Merijn Brand <h.m.brand@xs4all.nl>
Mon, 14 Feb 2011 22:01:37 +0000 (23:01 +0100)
committerH.Merijn Brand <h.m.brand@xs4all.nl>
Mon, 14 Feb 2011 22:01:37 +0000 (23:01 +0100)
From: Nicholas Clark <nick@ccl4.org>
Date: Mon, 14 Feb 2011 16:01:49 +0000
Message-ID: <20110214160149.GU24189@plum.flirble.org>

INSTALL says this:

    =item -DEBUGGING=-g

    =item -Doptimize=-g

    Adds -g to optimize, but does not set -DDEBUGGING.

    (Note:  Your system may actually require something like cc -g2.
    Check your man pages for cc(1) and also any hint file for your system.)

However, we *aren't* compliant with our documentation, as currently
-Doptimize=-g (or anything containing -g) still causes -DDEBUGGING to be
added to the C flags.

Signed-off-by: H.Merijn Brand <h.m.brand@xs4all.nl>
Configure

index 28be3da..d9911f9 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -28,7 +28,7 @@
 # See Porting/pumpkin.pod for more information on metaconfig.
 #
 
-# Generated on Sun Jan 23 10:14:12 CET 2011 [metaconfig 3.5 PL0]
+# Generated on Mon Feb 14 23:00:18 CET 2011 [metaconfig 3.5 PL0]
 # (with additional metaconfig patches by perlbug@perl.org)
 
 cat >c1$$ <<EOF
@@ -1319,7 +1319,7 @@ inclwanted=''
 
 : Enable -DEBUGGING and -DDEBUGGING from the command line
 EBUGGING=''
-DEBUGGING=old
+DEBUGGING=''
 
 : set usethreads on the Configure command line to enable threads.
 usereentrant='undef'