diff options
author | Richard Levitte <levitte@openssl.org> | 2021-07-08 05:18:25 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2021-07-10 12:09:11 +0200 |
commit | 1bbe13fce5be8eee6fe2854b79dfbd38c028077c (patch) | |
tree | 82df44980fdc18b7f25fb345c5afa5e785804111 /Configurations/platform | |
parent | 0007ff257c95f5cd046799e492436f41caf4ecb2 (diff) |
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/platform')
-rw-r--r-- | Configurations/platform/Unix.pm | 1 |
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()); } |