On Tue, 3 Aug 2010 07:54:00 -0400 (EDT), George Greer <perl@greerga.m-l.org> wrote: > On Tue, 3 Aug 2010, H.Merijn Brand wrote: > [...] > > I see no debugging in there > > > > as described in INSTALL > > > > =item -DEBUGGING=none > > > > =item -UDEBUGGING > > > > Removes -g from optimize, and -DDEBUGGING from ccflags. > > > > If it doesn't, it is a bug in Configure I have to fix. > > > > I did read the rest of the thread and am still not seeing what should > > be changed > > The complaint is: > > $ ./Configure -des -Doptimize=-g -Dusedevel && grep cflags config.sh > [...] > ccflags='-DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector > -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64' > > -Doptimize=-g turning on DEBUGGING is surprising, and not documented. > Ah, right. That is in Configure on line 5130 and on: --8<--- : We will not override a previous value, but we might want to : augment a hint file case "$hint" in default|recommended) case "$gccversion" in 1*) dflt="$dflt -fpcc-struct-return" ;; esac case "$optimize:$DEBUGGING" in *-g*:old) dflt="$dflt -DDEBUGGING";; esac -->8--- and is to preserve `old' behaviour. In the days before -DDEBUGGING and -DEBUGGING were implemented as command line options to Configure, this was the (undocumented) way it worked. Now that -DEBUGGING works and is well documented in INSTALL, the old promotion should not be used. or with commits and dates --8<--- U/compline/ccflags.U 959f3 1999-07-25 15:10:03 180: : We will not override a previous value, but we might want to 959f3 1999-07-25 15:10:03 181: : augment a hint file 959f3 1999-07-25 15:10:03 182: case "$hint" in f5f3c 1999-08-29 13:08:50 183: default|recommended) 959f3 1999-07-25 15:10:03 184: case "$gccversion" in 21de4 2006-04-17 13:33:17 185: 1*) dflt="$dflt -fpcc-struct-return" ;; 959f3 1999-07-25 15:10:03 186: esac 21de4 2006-04-17 13:33:17 187: case "$optimize:$DEBUGGING" in 21de4 2006-04-17 13:33:17 188: *-g*:old) dflt="$dflt -DDEBUGGING";; 959f3 1999-07-25 15:10:03 189: esac -->8--- Of course this behaviour can be changed. Removing lines 187..189 will disable the old behaviour completely. http://perl5.git.perl.org/metaconfig.git/commitdiff/21de4 was the change to add -DDEBUGGING and -DEBUGGING to the units -- H.Merijn Brand http://tux.nl Perl Monger http://amsterdam.pm.org/ using 5.00307 through 5.12 and porting perl5.13.x on HP-UX 10.20, 11.00, 11.11, 11.23, and 11.31, OpenSuSE 10.3, 11.0, and 11.1, AIX 5.2 and 5.3. http://mirrors.develooper.com/hpux/ http://www.test-smoke.org/ http://qa.perl.org http://www.goldmark.org/jeff/stupid-disclaimers/Thread Previous | Thread Next