summaryrefslogtreecommitdiff
path: root/Configurations
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2021-07-08 05:18:25 +0200
committerRichard Levitte <levitte@openssl.org>2021-07-10 12:09:11 +0200
commit1bbe13fce5be8eee6fe2854b79dfbd38c028077c (patch)
tree82df44980fdc18b7f25fb345c5afa5e785804111 /Configurations
parent0007ff257c95f5cd046799e492436f41caf4ecb2 (diff)
downloadopenssl-new-1bbe13fce5be8eee6fe2854b79dfbd38c028077c.tar.gz
platform->sharedlib_simple(): return undef when same as platform->sharedlib()
On some Unix-like platforms, there is no such thing as versioned shared libraries. In this case, platform->sharedlib_simple() should simply return undef. Among others, this avoids the shared libraries to be installed as symlinks on themselves. Fixes #16012 Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/16023)
Diffstat (limited to 'Configurations')
-rw-r--r--Configurations/platform/Unix.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/Configurations/platform/Unix.pm b/Configurations/platform/Unix.pm
index 80963adc30..c7d7d9eb80 100644
--- a/Configurations/platform/Unix.pm
+++ b/Configurations/platform/Unix.pm
@@ -63,6 +63,7 @@ sub sharedname_simple {
}
sub sharedlib_simple {
+ return undef if $_[0]->shlibext() eq $_[0]->shlibextsimple();
return platform::BASE::__concat($_[0]->sharedname_simple($_[1]),
$_[0]->shlibextsimple());
}