]> wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
Fix MacOS building 139/head
authorDimitriy Ryazantcev <dimitriy.ryazantcev@gmail.com>
Sat, 4 May 2019 17:22:16 +0000 (20:22 +0300)
committerDimitriy Ryazantcev <dimitriy.ryazantcev@gmail.com>
Fri, 17 May 2019 23:09:02 +0000 (02:09 +0300)
Fixes #122

CMakeLists.txt

index 51eb221ef558f65961c99b1962a1105c55431978..1985eb4172d95017df20d5758f06e6015830e266 100644 (file)
@@ -26,6 +26,9 @@ endif()
 
 set(BIN_DIRECTORY bin)
 
+# Same soversion as OpenSSL
+set(GOST_SOVERSION "${OPENSSL_VERSION_MAJOR}.${OPENSSL_VERSION_MINOR}")
+
 set(OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/${BIN_DIRECTORY})
 
 #set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${OUTPUT_DIRECTORY})
@@ -110,8 +113,9 @@ add_test(NAME grasshopper
 add_library(gost STATIC ${GOST_LIB_SOURCE_FILES})
 set_target_properties(gost PROPERTIES POSITION_INDEPENDENT_CODE ON)
 
-add_library(gost_engine MODULE ${GOST_ENGINE_SOURCE_FILES})
+add_library(gost_engine SHARED ${GOST_ENGINE_SOURCE_FILES})
 set_target_properties(gost_engine PROPERTIES PREFIX "" OUTPUT_NAME "gost")
+set_target_properties(gost_engine PROPERTIES VERSION ${GOST_SOVERSION} SOVERSION ${GOST_SOVERSION})
 
 target_link_libraries(gost_engine ${OPENSSL_CRYPTO_LIBRARY} gost)