util/mkdef.pl: Take shlib_variant into account
authorRichard Levitte <levitte@openssl.org>
Mon, 15 May 2023 12:30:43 +0000 (14:30 +0200)
committerTomas Mraz <tomas@openssl.org>
Thu, 25 May 2023 13:54:31 +0000 (15:54 +0200)
For platforms using import libraries, the lack of this causes a
disjoint between the name of the DLL that's produced, and the
corresponding import library.

Fixes #20942 (follows up #20732)

Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20968)

util/mkdef.pl

index 3ac79821b020dd5adee9215bda22a8ea49333ed1..0599f23f0baec47446570201940c8985d0c50fca 100755 (executable)
@@ -197,6 +197,7 @@ foreach (@ARGV, split(/ /, $config{options}))
        }
 $libname = $unified_info{sharednames}->{libcrypto} if $do_crypto;
 $libname = $unified_info{sharednames}->{libssl} if $do_ssl;
+$libname .= $target{shlib_variant} || "";
 
 if (!$libname) {
        if ($do_ssl) {