From: Steve Peters Date: Sat, 21 Oct 2006 13:28:13 +0000 (+0000) Subject: Better solution to silencing prereq warnings from threads's X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7f595b022ab97bbbb5263bdf0439bdfa18c18625;p=p5sagit%2Fp5-mst-13.2.git Better solution to silencing prereq warnings from threads's Makefile.PL p4raw-id: //depot/perl@29069 --- diff --git a/ext/threads/Makefile.PL b/ext/threads/Makefile.PL index aeecbde..5cc63d9 100755 --- a/ext/threads/Makefile.PL +++ b/ext/threads/Makefile.PL @@ -61,17 +61,10 @@ if (grep { $_ eq 'PERL_CORE=1' } @ARGV) { push(@conditional_params, 'DEFINE' => '-DHAS_PPPORT_H'); } +my $prereqs; -# Create Makefile -WriteMakefile( - 'NAME' => 'threads', - 'AUTHOR' => 'Artur Bergman, Jerry D. Hedden ', - 'VERSION_FROM' => 'threads.pm', - 'ABSTRACT_FROM' => 'threads.pm', - 'PM' => { - 'threads.pm' => '$(INST_LIBDIR)/threads.pm', - }, - 'PREREQ_PM' => { +if (!$ENV{PERL_CORE}) { + my $prereqs = { 'strict' => 0, 'warnings' => 0, 'overload' => 0, @@ -80,9 +73,21 @@ WriteMakefile( 'XSLoader' => 0, 'ExtUtils::testlib' => 0, -# 'Hash::Util' => 0, -# 'IO::File' => 0, + 'Hash::Util' => 0, + 'IO::File' => 0, + }; +} + +# Create Makefile +WriteMakefile( + 'NAME' => 'threads', + 'AUTHOR' => 'Artur Bergman, Jerry D. Hedden ', + 'VERSION_FROM' => 'threads.pm', + 'ABSTRACT_FROM' => 'threads.pm', + 'PM' => { + 'threads.pm' => '$(INST_LIBDIR)/threads.pm', }, + 'PREREQ_PM' => $prereqs, 'INSTALLDIRS' => 'perl', ((ExtUtils::MakeMaker->VERSION() lt '6.25') ?