develooper Front page | perl.perl5.porters | Postings from February 2006

output of "-V" inconsistent?

Linda W
February 24, 2006 12:51
output of "-V" inconsistent?
Message ID:
I've been playing with different compile options and wanted to verify
the options that were used in generating a instance of perl sitting in
its build directory with its libs.

In the build dir, I ran "./perl -Ilib -V".

Two lines from this seemed to be in conflict.  I was wondering if this
was normally possible or "out of the ordinary":

"config_args" dumps as:
config_args='-ds -e -Dprefix=/usr -Dvendorprefix=/usr -Dinstallusrbinperl -D
i_db -Di_dbm -Di_ndbm -Di_gdbm -Dprefix=/usr -Dvendorprefix=/usr 
-Dinstallusrbinperl -Di_db -Di_dbm -Di_ndbm -Di_gdbm -Doptimize=-O2 
-march=i686 -mcpu=pentium3
-fweb -funit-at-a-time -ftracer -frename-registers -fomit-frame-pointer 
-Wall -pipe'

First observation: it doesn't appear to show embedded quotes, the
-Doptimize tag had a value of -Doptimize="-O2 -march=i686 -mcpu=pentium3
-fweb -funit-at-a-time -ftracer -frename-registers -fomit-frame-pointer 
-Wall -p
ipe", however, it seems to mostly do the right thing, *but* a bit 
farther down
I see:

    cc='cc', ccflags ='-fno-strict-aliasing -pipe -I/usr/local/include 
    optimize='-O2 -march=i686 -fweb -funit-at-a-time -ftracer 
-frename-registers -fomit-frame-pointer -Wall -pipe',
    cppflags='-fno-strict-aliasing -pipe -I/usr/local/include 
-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE 
    ccversion='', gccversion='3.3.5 20050117 (prerelease) (SUSE Linux)', 

Note the value for "optimize": the "-mcpu=pentium3" isn't listed.  Is this
an intentional or accidental omission? 

My basic question is: should this even be possible?  I.e. - are the 
to "config" and "optimize" parsed in different places such that the
"-mcpu=pentium3" might have been somehow dropped so it isn't included in the
output of "-V"?

Not a big deal -- I can just rebuild, but was wondering if this should
even be possible?

Linda Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About