From 66fafef3e435927a20ab07919172af9434e10240 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnter=20Obiltschnig?= Date: Fri, 17 Aug 2018 18:26:03 +0200 Subject: [PATCH] fix SLPro OpenSSL auto linking for POCO_DLL --- Crypto/include/Poco/Crypto/Crypto.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Crypto/include/Poco/Crypto/Crypto.h b/Crypto/include/Poco/Crypto/Crypto.h index cbf4a5167..f63736e86 100644 --- a/Crypto/include/Poco/Crypto/Crypto.h +++ b/Crypto/include/Poco/Crypto/Crypto.h @@ -120,8 +120,13 @@ enum RSAPaddingMode #endif #elif defined(POCO_EXTERNAL_OPENSSL) #if POCO_EXTERNAL_OPENSSL == POCO_EXTERNAL_OPENSSL_SLPRO - #pragma comment(lib, "libeay32" POCO_LIB_SUFFIX) - #pragma comment(lib, "ssleay32" POCO_LIB_SUFFIX) + #if defined(POCO_DLL) + #pragma comment(lib, "libeay32.lib") + #pragma comment(lib, "ssleay32.lib") + #else + #pragma comment(lib, "libeay32" POCO_LIB_SUFFIX) + #pragma comment(lib, "ssleay32" POCO_LIB_SUFFIX) + #endif #elif POCO_EXTERNAL_OPENSSL == POCO_EXTERNAL_OPENSSL_DEFAULT #pragma comment(lib, "libeay32.lib") #pragma comment(lib, "ssleay32.lib")