summaryrefslogtreecommitdiff
path: root/installperl
diff options
context:
space:
mode:
authorJerry D. Hedden <jdhedden@cpan.org>2008-02-15 06:02:54 -0500
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2008-02-18 10:51:32 +0000
commit3dd5fe6bfa7c903b16ebbcdf4e19ea367d394227 (patch)
tree247da6318509f43f7e510eb697db8a60fb0baf7e /installperl
parent250257bbff1fc2894d6e73059be5be21b4ea00a4 (diff)
downloadperl-3dd5fe6bfa7c903b16ebbcdf4e19ea367d394227.tar.gz
Don't install threads files on non-threaded Perls
From: "Jerry D. Hedden" <jdhedden@cpan.org> Message-ID: <1ff86f510802150802g5bf52a52nc9543eb236063b86@mail.gmail.com> p4raw-id: //depot/perl@33326
Diffstat (limited to 'installperl')
-rwxr-xr-xinstallperl6
1 files changed, 6 insertions, 0 deletions
diff --git a/installperl b/installperl
index f635918796..fddb66e1b6 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