From: Richard Levitte Date: Thu, 8 Jul 2021 03:18:25 +0000 (+0200) Subject: platform->sharedlib_simple(): return undef when same as platform->sharedlib() X-Git-Tag: openssl-3.0.0-beta2~92 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1bbe13fce5be8eee6fe2854b79dfbd38c028077c;p=thirdparty%2Fopenssl.git 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 Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/16023) --- diff --git a/Configurations/platform/Unix.pm b/Configurations/platform/Unix.pm index 80963adc30d..c7d7d9eb808 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()); }