diff --git a/Server/Source/CMakeLists.txt b/Server/Source/CMakeLists.txt index 76811ebc8..e74713bce 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 61c1f8706..bab8296b9 100644 --- a/Server/Source/core_impl.hpp +++ b/Server/Source/core_impl.hpp @@ -1516,6 +1516,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");