From: Rafael Garcia-Suarez Date: Fri, 2 May 2008 15:25:05 +0000 (+0000) Subject: Fix makefile for core building X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=fd72f444d81d4726b080faf060657636ffab3bfb;p=p5sagit%2Fp5-mst-13.2.git Fix makefile for core building p4raw-id: //depot/perl@33780 --- diff --git a/ext/Digest/SHA/Makefile.PL b/ext/Digest/SHA/Makefile.PL index ce9e402..df63c2b 100644 --- a/ext/Digest/SHA/Makefile.PL +++ b/ext/Digest/SHA/Makefile.PL @@ -6,6 +6,9 @@ use Config; my $PM = 'lib/Digest/SHA.pm'; +my $PERL_CORE = 0; +$PERL_CORE = 1 if grep { $_ eq 'PERL_CORE=1' } @ARGV; + my %opts; getopts('tx', \%opts); @@ -31,8 +34,10 @@ my %att = ( 'LIBS' => [''], 'DEFINE' => $define, 'INC' => '-I.', - 'EXE_FILES' => [ 'shasum' ], - 'INSTALLDIRS' => ($] >= 5.010) ? 'perl' : 'site', + $PERL_CORE ? () : ( + 'EXE_FILES' => [ 'shasum' ], + 'INSTALLDIRS' => ($] >= 5.010) ? 'perl' : 'site', + ), ); my $MMversion = $ExtUtils::MakeMaker::VERSION || 0;