diff --git a/Server/Source/CMakeLists.txt b/Server/Source/CMakeLists.txt index 76811ebc8..f2df4b459 100644 --- a/Server/Source/CMakeLists.txt +++ b/Server/Source/CMakeLists.txt @@ -42,6 +42,9 @@ else() endif() endif() +if(UNIX AND NOT SHARED_OPENSSL) + target_compile_definitions(SERVER PRIVATE OMP_STATIC_OPENSSL) +endif() target_compile_definitions(Server PRIVATE OMP_VERSION_MAJOR=${CMAKE_PROJECT_VERSION_MAJOR} diff --git a/Server/Source/core_impl.hpp b/Server/Source/core_impl.hpp index bc3851498..e14a8ef2b 100644 --- a/Server/Source/core_impl.hpp +++ b/Server/Source/core_impl.hpp @@ -1514,6 +1514,10 @@ class Core final : public ICore, public PlayerConnectEventHandler, public Consol printLn("Starting open.mp server (%u.%u.%u.%u) from commit %.*s", getVersion().major, getVersion().minor, getVersion().patch, getVersion().prerel, PRINT_VIEW(getVersionHash())); +#ifdef OMP_STATIC_OPENSSL + logLn(LogLevel::Warning, "Running static OpenSSL build - plugins that use OpenSSL might crash (discord-connector, pawn-requests). It's recommended to use the dynssl build."); +#endif + // Try to load components from the current directory loadComponents("components");