summaryrefslogtreecommitdiff
path: root/installperl
diff options
context:
space:
mode:
authorSteve Hay <SteveHay@planit.com>2007-07-06 13:20:06 +0100
committerSteve Hay <SteveHay@planit.com>2007-07-09 13:15:05 +0000
commit54f1e9b414847e7fe5b59fb030d964a3999033ba (patch)
treeb26781286439f5642e21fcc5f940ddafd863e23e /installperl
parenta9277f440b7800bab095ac55322c223f4308cd3e (diff)
downloadperl-54f1e9b414847e7fe5b59fb030d964a3999033ba.tar.gz
Don't install static library files of statically linked extensions
when using a shared perl library. The files are not needed, and this fixes a problem building PAR-Packer on Win32 with a debug build of perl. (If Win32CORE.lib gets installed then PAR-Packer wants to link against it and its PDB file, vc60.pdb, but the latter is not installed.) Also skip installing a few other unnecessary files. Subject: Re: Problem in Win32CORE when building PAR-Packer-0.975 with bleadperl on Win32 Message-ID: <468E2566.8090504@uk.radan.com> p4raw-id: //depot/perl@31570
Diffstat (limited to 'installperl')
-rwxr-xr-xinstallperl7
1 files changed, 7 insertions, 0 deletions
diff --git a/installperl b/installperl
index f4742ee35a..a49e9babf3 100755
--- a/installperl
+++ b/installperl
@@ -845,6 +845,13 @@ sub installlib {
return if $name =~ m{^(?:TODO|BUGS|CREDITS)$}i;
return if $name =~ m{^change(?:s|log)(?:\.libnet)?$}i;
+ # 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
+ # anyway?) and empty bootstrap files [of dynamically linked extensions].
+ return if $Config{useshrplib} eq 'true' and
+ ($name =~ /$Config{_a}$/ or $name =~ /\.exp$/ or ($name =~ /\.bs$/ and -z $name));
+
$name = "$dir/$name" if $dir ne '';
my $installlib = $installprivlib;