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}>;