X-Git-Url: https://perl5.git.perl.org/perl5.git/blobdiff_plain/ea17c9b657409ab87569389225ef974ae51ca023..12b31bedfd2f422eff75009215acbc2ee0cc3fa6:/ext/threads/shared/Makefile.PL diff --git a/ext/threads/shared/Makefile.PL b/ext/threads/shared/Makefile.PL index b9f5944..beccf25 100755 --- a/ext/threads/shared/Makefile.PL +++ b/ext/threads/shared/Makefile.PL @@ -61,6 +61,14 @@ if (grep { $_ eq 'PERL_CORE=1' } @ARGV) { push(@conditional_params, 'DEFINE' => '-DHAS_PPPORT_H'); } +my $prereqs; + +if(!$ENV{PERL_CORE}) { + $prereqs = { + 'threads' => 0, + 'XSLoader' => 0, + }; +} # Create Makefile WriteMakefile( @@ -71,10 +79,7 @@ WriteMakefile( 'PM' => { 'shared.pm' => '$(INST_LIBDIR)/shared.pm', }, - 'PREREQ_PM' => { - 'threads' => 0, - 'XSLoader' => 0, - }, + 'PREREQ_PM' => $prereqs, 'INSTALLDIRS' => 'perl', ((ExtUtils::MakeMaker->VERSION() lt '6.25') ?