]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
platform->sharedlib_simple(): return undef when same as platform->sharedlib()
authorRichard Levitte <levitte@openssl.org>
Thu, 8 Jul 2021 03:18:25 +0000 (05:18 +0200)
committerRichard Levitte <levitte@openssl.org>
Sat, 10 Jul 2021 10:09:11 +0000 (12:09 +0200)
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)

Configurations/platform/Unix.pm

index 80963adc30d884b48ae19615c6623f7f6e1b4af9..c7d7d9eb808c89c44fc1e33582608b58b5943ff0 100644 (file)
@@ -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());
 }