From 54f1e9b414847e7fe5b59fb030d964a3999033ba Mon Sep 17 00:00:00 2001 From: Steve Hay Date: Fri, 6 Jul 2007 13:20:06 +0100 Subject: 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 --- installperl | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'installperl') 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; -- cgit v1.2.1