mirror of
https://github.com/openssl/openssl.git
synced 2025-04-06 20:20:50 +08:00
exporters/cmake/OpenSSLConfig.cmake.in: Detect missing platform->sharedlib_import
Some platform implementations are without `sharedlib_import()`, so we need to check that it exists before using it. Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Todd Short <todd.short@me.com> (Merged from https://github.com/openssl/openssl/pull/22789)
This commit is contained in:
parent
c08b21a2c9
commit
dd5fe94a61
@ -12,10 +12,12 @@
|
||||
? platform->sharedlib_simple($_)
|
||||
: undef)
|
||||
// platform->sharedlib($_);
|
||||
my $lib_shared_import = platform->sharedlib_import($_);
|
||||
$x{static} = $lib_static if $lib_static;
|
||||
$x{shared} = $lib_shared if $lib_shared;
|
||||
$x{shared_import} = $lib_shared_import if $lib_shared_import;
|
||||
if (platform->can("sharedlib_import")) {
|
||||
my $lib_shared_import = platform->sharedlib_import($_);
|
||||
$x{shared_import} = $lib_shared_import if $lib_shared_import;
|
||||
}
|
||||
%x ? ( $_ => \%x ) : () }
|
||||
grep { !$unified_info{attributes}->{libraries}->{$_}->{noinst} }
|
||||
@{$unified_info{libraries}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user