mirror of
https://github.com/Perl/perl5.git
synced 2026-01-26 16:39:36 +00:00
In installperl, simplify the strip/chmod code for libraries on Darwin.
This commit is contained in:
parent
efe502bb62
commit
3a548b368f
11
installperl
11
installperl
@ -788,14 +788,9 @@ sub installlib {
|
||||
# HP-UX (at least) needs to maintain execute permissions
|
||||
# on dynamically-loaded libraries.
|
||||
if (copy_if_diff($_, "$installlib/$name")) {
|
||||
if ($name =~ /\.(so|$dlext)$/o) {
|
||||
strip("-S", "$installlib/$name") if $^O =~ /^(rhapsody|darwin)$/;
|
||||
chmod(0555, "$installlib/$name");
|
||||
} else {
|
||||
strip("-S", "$installlib/$name")
|
||||
if ($name =~ /\.a$/o and $^O =~ /^(rhapsody|darwin)$/);
|
||||
chmod(0444, "$installlib/$name");
|
||||
}
|
||||
strip("-S", "$installlib/$name")
|
||||
if $^O =~ /^(rhapsody|darwin)$/ and /\.(?:so|$dlext|a)$/;
|
||||
chmod(/\.(so|$dlext)$/ ? 0555 : 0444, "$installlib/$name");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user