From: Rafael Garcia-Suarez Date: Sun, 30 Aug 2009 13:37:02 +0000 (+0200) Subject: Don't install Safe in arch directory if this is a core build or if we're >= 5.11.0 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7fd9b275d917c1ec84b61bcfe86de2520af239f1;p=p5sagit%2Fp5-mst-13.2.git Don't install Safe in arch directory if this is a core build or if we're >= 5.11.0 The first condition is to allow to install properly on perls <= 5.10.1 from CPAN, while remaining buildable when the ext/ reorganisation is integrated in maint-5.10. --- diff --git a/ext/Safe/Makefile.PL b/ext/Safe/Makefile.PL index 3beeba8..0463e9c 100644 --- a/ext/Safe/Makefile.PL +++ b/ext/Safe/Makefile.PL @@ -1,9 +1,10 @@ use ExtUtils::MakeMaker; +my $core = grep { $_ eq 'PERL_CORE=1' } @ARGV; + WriteMakefile( NAME => 'Safe', VERSION_FROM => 'Safe.pm', INSTALLDIRS => 'perl', - INST_LIB => '$(INST_ARCHLIB)', + ($core || $] >= 5.011) ? () : (INST_LIB => '$(INST_ARCHLIB)'), ); -