From: Jerry D. Hedden Date: Fri, 15 Feb 2008 11:02:54 +0000 (-0500) Subject: Don't install threads files on non-threaded Perls X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3dd5fe6bfa7c903b16ebbcdf4e19ea367d394227;p=p5sagit%2Fp5-mst-13.2.git Don't install threads files on non-threaded Perls From: "Jerry D. Hedden" Message-ID: <1ff86f510802150802g5bf52a52nc9543eb236063b86@mail.gmail.com> p4raw-id: //depot/perl@33326 --- diff --git a/installperl b/installperl index f635918..fddb66e 100755 --- a/installperl +++ b/installperl @@ -819,6 +819,12 @@ sub installlib { return if $name =~ m{^(?:SIGNATURE|PAUSE200\d\.pub)$}; # CPAN files return if $name =~ m{^(?:NOTES|PATCHING)$}; # ExtUtils files + # If not a threaded Perl, then ignore files that support threads + if (! $Config{'useithreads'}) { + return if $dir =~ m{Thread}; + return if $name =~ m{Thread}; + } + # if using a shared perl library then ignore: # - static library files [of statically linked extensions]; # - import library files and export library files (only present on Win32