remove Class::MOP::subname and Class::MOP::in_global_destruction
[gitmo/Class-MOP.git] / Makefile.PL
index 417fa13..ef1680f 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';
@@ -51,6 +52,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 +63,7 @@ WriteAll();
 # before a release.
 sub check_conflicts {
     my %conflicts = (
-        'Moose' => '0.71',
+        'Moose' => '0.72',
     );
 
     my $found = 0;