[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: $Config{ccflags} not set

On Thu, 24 Nov 2011 13:51:13 +0000, Florian Weimer wrote:

> > But from the build log, I can see that $Config{ccflags} is apparently
> > expanded to nothing at all.  Is there any other way I can get the flags
> > I need to stuff into CCFLAGS?
> It turned that this was caused by a missing "use Config;".  Kind of
> obvious, but only in retrospect.

Probably combined with a missing "use strict;" :)

$ perl -E 'say $Config{ccflags};' ; echo $?

$ perl -E 'use strict; say $Config{ccflags};' ; echo $?
Global symbol "%Config" requires explicit package name at -e line 1.
Execution of -e aborted due to compilation errors.

gregor (who had thought about the mail a bit 
        without thinking of "use Config;"; 
        indeed "obvious only in retrospect")
 .''`.   Homepage: http://info.comodo.priv.at/ - OpenPGP key ID: 0x8649AA06
 : :' :  Debian GNU/Linux user, admin, & developer - http://www.debian.org/
 `. `'   Member of VIBE!AT & SPI, fellow of Free Software Foundation Europe
   `-    "Rome wasn't burned in a day. " 

Reply to: