diff options
author | Steve Peters <steve@fisharerojo.org> | 2006-10-21 13:28:13 +0000 |
---|---|---|
committer | Steve Peters <steve@fisharerojo.org> | 2006-10-21 13:28:13 +0000 |
commit | 7f595b022ab97bbbb5263bdf0439bdfa18c18625 (patch) | |
tree | 292df4b42a03fc3076da5295848a3d42bc82100f /ext | |
parent | 2c2f35abb7961b572c45e5e167bb72553908228d (diff) | |
download | perl-7f595b022ab97bbbb5263bdf0439bdfa18c18625.tar.gz |
Better solution to silencing prereq warnings from threads's
Makefile.PL
p4raw-id: //depot/perl@29069
Diffstat (limited to 'ext')
-rwxr-xr-x | ext/threads/Makefile.PL | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/ext/threads/Makefile.PL b/ext/threads/Makefile.PL index aeecbde2b4..5cc63d938b 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 <jdhedden AT cpan DOT org>', - '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 <jdhedden AT cpan DOT org>', + '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') ? |