David Golden wrote:
> On Thu, Nov 5, 2009 at 12:18 PM, <[email protected]> wrote:
>> By -s do you mean the "-Os" ?
>> I added that recently when I tried it and saw the
>> wonderful effect it had on the object size under gcc.
>>
>> If -Os is only available under gcc, do you have any
>> advice (or links) on how to test for gcc in Makefile.PL?
>
> How about:
>
> use Config;
> if ( $Config{cc} =~ /gcc/ ) { ... }
Not sure that'll always work - what if cc is a link to gcc?
But $Config{gccversion} is always true if gcc was used.
--
David Cantrell | even more awesome than a panda-fur coat
Repent through spending