Re: $Config{ccflags} not set
* Florian Weimer:
> 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?
It turned that this was caused by a missing "use Config;". Kind of
obvious, but only in retrospect.
--
Florian Weimer <fweimer@bfk.de>
BFK edv-consulting GmbH http://www.bfk.de/
Kriegsstraße 100 tel: +49-721-96201-1
D-76133 Karlsruhe fax: +49-721-96201-99
Reply to: