Skip to content

Commit 2678143

Browse files
committed
Fix s390x
1 parent 461c881 commit 2678143

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

contrib/openssl-cmake/CMakeLists.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1454,13 +1454,14 @@ if(ENABLE_OPENSSL_DYNAMIC)
14541454
set_target_properties(ssl PROPERTIES VERSION "${LIB_VERSION}" SOVERSION "${LIB_SOVERSION}")
14551455
set_target_properties(ssl PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/programs)
14561456
else()
1457+
# Enable legacy crypto support for OpenSSL 3.+
1458+
# to avoid `dlopen(legacy.so)`.
1459+
add_definitions(-DSTATIC_LEGACY)
1460+
14571461
add_library(crypto ${CRYPTO_SRC})
14581462
add_library(ssl ${SSL_SRC})
14591463
endif()
14601464

1461-
# Enable legacy crypto support for OpenSSL 3.+
1462-
# to avoid `dlopen(legacy.so)`.
1463-
add_definitions(-DSTATIC_LEGACY)
14641465

14651466
target_include_directories(crypto
14661467
SYSTEM PUBLIC "${PLATFORM_DIRECTORY}/include"

0 commit comments

Comments
 (0)