Re: $Config{ccflags} not set
On Thu, Nov 24, 2011 at 01:22:22PM +0000, Florian Weimer wrote:
> We've got an internal XS package which doesn't compile on wheezy/sid
> because we set CCFLAGS. I've changed this to:
>
> | use 5.008008;
> | use ExtUtils::MakeMaker;
> | WriteMakefile(
> | ...
> | CCFLAGS => "-O0 -g -Wall $Config{ccflags}",
> | ...
> | );
>
> This is modeled after similar patches to fix FTBFS bugs such as #636653.
>
> 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?
Just checking: maybe you're missing a 'use Config' line?
$Config{ccflags} certainly should expand to something with that.
--
Niko Tyni ntyni@debian.org
Reply to: