From: Steve Hay Date: Fri, 6 Jul 2007 12:20:06 +0000 (+0100) Subject: Don't install static library files of statically linked extensions X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=54f1e9b414847e7fe5b59fb030d964a3999033ba;p=p5sagit%2Fp5-mst-13.2.git 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 --- diff --git a/installperl b/installperl index f4742ee..a49e9ba 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;