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 <merijn@tux09.procura.nl>
Mon, 14 Feb 2011 21:59:08 +0000 (22:59 +0100)
committerH.Merijn Brand <merijn@tux09.procura.nl>
Mon, 14 Feb 2011 21:59:08 +0000 (22:59 +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.

U/compline/ccflags.U

index 3636b98..f237cee 100644 (file)
@@ -95,7 +95,7 @@
 ?INIT:
 ?INIT:: Enable -DEBUGGING and -DDEBUGGING from the command line
 ?INIT:EBUGGING=''
-?INIT:DEBUGGING=old
+?INIT:DEBUGGING=''
 ?INIT:
 : determine optimization, if desired, or use for debug flag also
 ?X: Allow for Configure -Uoptimize -- it's not strictly sensible, but