Skip to content

Commit 13bac97

Browse files
committed
cmake: Fix broken soname links when bundling OpenSSL libraries.
1 parent cd6dde2 commit 13bac97

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

cdk/cmake/ssl.cmake

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,16 @@ function(get_lib_file LIB_VAR SONAME_VAR LIB)
565565

566566
#message("== lib_soname: ${lib_soname}")
567567

568-
set(${SONAME_VAR} "${lib_soname}" PARENT_SCOPE)
568+
#
569+
# Note: We observed that for openssl library, the soname extracted is
570+
# sometime identical to the original name, which breaks logic that later
571+
# creates the soname link. Thus in this case we do not set soname and do
572+
# not create soname link.
573+
#
574+
575+
if(NOT lib_soname STREQUAL lib_name)
576+
set(${SONAME_VAR} "${lib_soname}" PARENT_SCOPE)
577+
endif()
569578

570579
endif()
571580

0 commit comments

Comments
 (0)