On 7-09-10 10:46, njh@bandsman.co.uk via RT wrote:
Show quoted text> Queue: Test-Smoke
> Ticket <URL:
https://rt.cpan.org/Ticket/Display.html?id=60857 >
>
> On 29/08/10 22:29, Abe Timmerman via RT wrote:
>>>>
>>>>> You can't use Test::Smoke to test whether Perl builds with a
>>>>>
>> different
>>
>>>>> compiler, because Test::Smoke ignores the values of CC and CFLAGS
>>>>>
>> in
>>
>>>>> your environment.
>>>>>
>>>> Two options here:
>>>> 1) use the -Dcc= and -Dccflags= options for configure
>>>> Put these options on a single line in the first section of the
>>>>
>> build
>>
>>>> configurations file (perlcurrent.cfg); or (preferred) create a new
>>>> configuration with its own build configurations file that has these
>>>> options in a single section.
>>>>
> I tried this, but it still doesn't work.
>
> As a test I created a new cfg file which has only one section:
>
> -Duseithreads
> -Dccflags="-Wall -O2 -pipe"
Ah, it has to be in it's own section:
# Begin of .cfg
# Single line with all compiler flags
-Dccflags='-Wall -O2 -pipe'
=
-Dusethreads
=
# Debug section
Build configurations are composed by combining all lines from all sections, in
the above example:
-Dccflags='-Wall -O2 -pipe'
-Dccflags='-Wall -O2 -pipe' -Dusethreads
checkout the chkbcfg.pl <your.cfg> it'll tell you what configs will be smoked.
Show quoted text>> PS: These are not really bugs, please just send me e-mail with
>> questions.
>>
> Unfortunately you forgot to mention what your email is, so I've had to
> continue to use "reply".
As for all CPAN authors: <cpanid>@cpan.org => abeltje@cpan.org
Also to be found in the Test::Smoke docs.
Thank you for your interest in Test::Smoke +
Good luck,
Abe.
--
_ | "Are you pondering what I'm pondering?"
( ) | Well, I think so, Brain, but if Jimmy cracks corn, and no one cares,
X | why does he keep doing it? (23 Nov 96 - A Little Off the Top)
/ \ |