Include method name in immutable methods (fixes #49680)
[gitmo/Class-MOP.git] / Makefile.PL
index 417fa13..a872582 100644 (file)
@@ -10,7 +10,8 @@ perl_version '5.008001';
 all_from 'lib/Class/MOP.pm';
 license 'perl';
 
-my $ccflags = ' -I.';
+require Config;
+my $ccflags = ( $Config::Config{ccflags} || '' ) . ' -I.';
 $ccflags .= ' -Wall' if -d '.svn' || -d '.git' || $ENV{MAINTAINER_MODE};
 
 requires 'Carp';
@@ -21,8 +22,10 @@ requires 'Sub::Name'    => '0.04';
 requires 'Task::Weaken';
 
 test_requires 'File::Spec';
-test_requires 'Test::More'      => '0.77';
-test_requires 'Test::Exception' => '0.21';
+test_requires 'Test::More'      => '0.88';
+test_requires 'Test::Exception' => '0.27';
+
+extra_tests();
 
 makemaker_args( CCFLAGS => $ccflags );
 
@@ -51,6 +54,10 @@ makemaker_args( CCFLAGS => $ccflags );
     );
 }
 
+postamble(<<'EOM');
+$(OBJECT) : mop.h
+EOM
+
 WriteAll();
 
 # Use the cpan-smolder-stable script in the Moose svn root to figure
@@ -58,7 +65,7 @@ WriteAll();
 # before a release.
 sub check_conflicts {
     my %conflicts = (
-        'Moose' => '0.71',
+        'Moose' => '0.85',
     );
 
     my $found = 0;