X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=2066fe87646bcad44725c93be3f6c64a9c88408f;hb=ce5e7c21ee5eb5beb9c08dcc9621abeca548778b;hp=81456750f68b420f1d00bf2c355b38fc32021d38;hpb=9fc9ab867f272405574e69ef14fde78f9d840537;p=p5sagit%2FDevel-Size.git diff --git a/Makefile.PL b/Makefile.PL index 8145675..2066fe8 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,11 +1,9 @@ -use ExtUtils::MakeMaker; -use Config; - -my %options = ( - NAME => 'Devel::Size', - LIBS => $Config{cc} eq 'gcc' || $Config{cc} eq 'cc' ? ['-lstdc++'] : '', - VERSION_FROM => 'lib/Devel/Size.pm', - CC => $Config{cc} eq 'cl' ? 'cl' : 'g++', -); - -WriteMakefile(%options); +use 5.008; +use ExtUtils::MakeMaker; + +WriteMakefile( + NAME => 'Devel::Size', + VERSION_FROM => 'lib/Devel/Size.pm', + ($ExtUtils::MakeMaker::VERSION >= 6.47 ? (MIN_PERL_VERSION => '5.008') : ()), + ($ExtUtils::MakeMaker::VERSION >= 6.31 ? (LICENSE => 'perl') : ()), +);