diff --git a/assembly/native/build-toncryptolib-windows-github.bat b/assembly/native/build-toncryptolib-windows-github.bat index 90dd0795d..ce8be3c55 100644 --- a/assembly/native/build-toncryptolib-windows-github.bat +++ b/assembly/native/build-toncryptolib-windows-github.bat @@ -1,2 +1,2 @@ -call "C:\Program Files\Microsoft Visual Studio\2022\%1\VC\Auxiliary\Build\vcvars64.bat" +call "C:\Program Files (x86)\Microsoft Visual Studio\2019\%1\VC\Auxiliary\Build\vcvars64.bat" call build-toncryptolib-windows.bat \ No newline at end of file diff --git a/crypto/CMakeLists.txt b/crypto/CMakeLists.txt index c539e6255..77d548dd3 100644 --- a/crypto/CMakeLists.txt +++ b/crypto/CMakeLists.txt @@ -583,7 +583,7 @@ elseif (APPLE) target_link_libraries(ton_crypto_lib PUBLIC "-force_load" ton_crypto_core) target_link_libraries(ton_crypto_lib PUBLIC "-force_load" tdutils) else() - target_link_libraries(ton_crypto_lib PUBLIC -Wl,--whole-archive ton_crypto_core tdutils -Wl,--no-whole-archive) + target_link_libraries(ton_crypto_lib PUBLIC -Wl,--whole-archive ton_crypto_core tdutils ${OPENSSL_CRYPTO_LIBRARY} -Wl,--no-whole-archive) endif() install(TARGETS ton_crypto_lib LIBRARY DESTINATION lib)