summaryrefslogtreecommitdiff
path: root/installperl
diff options
context:
space:
mode:
authorJerry D. Hedden <jdhedden@cpan.org>2008-08-25 06:47:24 -0400
committerH.Merijn Brand <h.m.brand@xs4all.nl>2008-08-25 15:56:16 +0000
commit2a21c44486d05ca8bdd9ae5994c23a5fdc81d55f (patch)
treefc20a1ef64ac12339b9284a26cf81cbd0375d2e9 /installperl
parent9d27dca99b7a70de3c674d084792e402944a2c0c (diff)
downloadperl-2a21c44486d05ca8bdd9ae5994c23a5fdc81d55f.tar.gz
Add cygperl*.dll to packlist
From: "Jerry D. Hedden" <jdhedden@cpan.org> Message-ID: <1ff86f510808250747s1e0c42demb2d4ac8dc5d33925@mail.gmail.com> p4raw-id: //depot/perl@34226
Diffstat (limited to 'installperl')
-rwxr-xr-xinstallperl20
1 files changed, 16 insertions, 4 deletions
diff --git a/installperl b/installperl
index b014f80761..e496b06c09 100755
--- a/installperl
+++ b/installperl
@@ -365,12 +365,24 @@ if ($Is_VMS) { # We did core file selection during build
map { s|^$coredir/||i; } @corefiles = <$coredir/*.*>;
}
elsif ($Is_Cygwin) { # On Cygwin symlink it to CORE to make Makefile happy
+ @corefiles = <*.h libperl*.* perl*$Config{lib_ext}>;
my $coredll = "$installarchlib/CORE/$libperl";
+ safe_unlink($coredll);
( $Config{'d_link'} eq 'define' &&
- eval { CORE::link "$installbin/$libperl", $coredll } ) ||
- eval { symlink "$installbin/$libperl", $coredll } ||
- copy("$installbin/$libperl", $coredll);
- @corefiles = <*.h libperl*.* perl*$Config{lib_ext}>;
+ eval {
+ CORE::link("$installbin/$libperl", $coredll);
+ $packlist->{$coredll} = { from => "$installbin/$libperl",
+ type => 'link' };
+ }
+ ) ||
+ eval {
+ symlink("$installbin/$libperl", $coredll);
+ $packlist->{$coredll} = { from => "$installbin/$libperl",
+ type => 'link' };
+ } ||
+ ( copy("$installbin/$libperl", $coredll) &&
+ push(@corefiles, $coredll)
+ )
} else {
# [als] hard-coded 'libperl' name... not good!
@corefiles = <*.h libperl*.* perl*$Config{lib_ext}>;