summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorSteve Peters <steve@fisharerojo.org>2006-10-21 13:28:13 +0000
committerSteve Peters <steve@fisharerojo.org>2006-10-21 13:28:13 +0000
commit7f595b022ab97bbbb5263bdf0439bdfa18c18625 (patch)
tree292df4b42a03fc3076da5295848a3d42bc82100f /ext
parent2c2f35abb7961b572c45e5e167bb72553908228d (diff)
downloadperl-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-xext/threads/Makefile.PL29
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') ?