develooper Front page | perl.perl5.porters | Postings from July 2010

Re: How do i compile blead without DEBUGGING?

Thread Previous | Thread Next
From:
George Greer
Date:
July 12, 2010 15:59
Subject:
Re: How do i compile blead without DEBUGGING?
Message ID:
alpine.LFD.2.00.1007121852010.13214@ein.m-l.org
On Mon, 12 Jul 2010, Rafael Garcia-Suarez wrote:

> On 12 July 2010 14:04, George Greer <perl@greerga.m-l.org> wrote:
>> Configure checks for "-g" in -Doptimize and flips -DDEBUGGING for you
>> automatically.  Try:
>
> This is not what INSTALL says...
>
>
> =item -DEBUGGING=-g
>
> =item -Doptimize=-g
>
> Adds -g to optimize, but does not set -DDEBUGGING.

"-Doptimize=-g" is why Fedora's Perl had -DDEBUGGING on for a long time.

$ g describe && git clean -dxqf && ./Configure -des -Dusedevel -Doptimize=-g &> /dev/null && grep DEBUGGING config.sh
v5.13.2-245-g9df83ff
ccflags='-DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
cppflags='-DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'

$ git describe && git clean -dxqf && ./Configure -des -Doptimize=-g &> /dev/null && grep DEBUGGING config.sh
v5.12.1-9-gf3918f4
ccflags='-DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
cppflags='-DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'

$ git describe && git clean -dxqf && ./Configure -des &> /dev/null && grep DEBUGGING config.sh
v5.12.1-9-gf3918f4

$ git describe && git clean -dxqf && ./Configure -des -Dusedevel &> /dev/null && grep DEBUGGING config.sh
v5.13.2-245-g9df83ff

(after the last one above)
$ egrep 'cflags|cppflags' config.sh
ccflags='-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
ccflags_uselargefiles='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
cppflags='-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
yaccflags=''

Which would you prefer to be correct, the documentation or the 
implementation?

-- 
George Greer
Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About