Skip to content

Commit a10c2fe

Browse files
committed
declare dependencies in Makefile.PL
1 parent 33a7cee commit a10c2fe

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Makefile.PL

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ my %param = (
1111
NAME => 'Win32',
1212
VERSION_FROM => 'Win32.pm',
1313
INSTALLDIRS => ($] >= 5.008004 && $] < 5.012 ? 'perl' : 'site'),
14+
PREREQ_PM => {
15+
strict => 0,
16+
warnings => 0,
17+
vars => 0,
18+
Exporter => 0,
19+
DynaLoader => 0
20+
}
1421
);
1522
$param{NO_META} = 1 if eval "$ExtUtils::MakeMaker::VERSION" >= 6.10_03;
1623

@@ -21,4 +28,10 @@ else {
2128
$param{LIBS} = ['-luserenv']
2229
}
2330

31+
my $test_requires = $ExtUtils::MakeMaker::VERSION >= 6.64
32+
? 'TEST_REQUIRES'
33+
: 'PREREQ_PM';
34+
35+
$param{$test_requires}{'Test'} = 0;
36+
2437
WriteMakefile(%param);

0 commit comments

Comments
 (0)