From 65da178ca392a7e74b4606bc84ff409d0ef14ff4 Mon Sep 17 00:00:00 2001 From: Thijs Schreijer Date: Mon, 2 Mar 2015 11:11:25 +0100 Subject: [PATCH 1/2] alternative rockspec --- luasec-0.5-3.rockspec | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/luasec-0.5-3.rockspec b/luasec-0.5-3.rockspec index 59090ed..7c37039 100644 --- a/luasec-0.5-3.rockspec +++ b/luasec-0.5-3.rockspec @@ -14,10 +14,19 @@ dependencies = { "lua >= 5.1", "luasocket" } external_dependencies = { - OPENSSL = { - header = "openssl/ssl.h", - library = "ssl", - }, + platforms = { + unix = { + OPENSSL = { + header = "openssl/ssl.h", + library = "ssl" + } + }, + windows = { + OPENSSL = { + header = "openssl/ssl.h", + } + }, + } } build = { type = "builtin", @@ -65,13 +74,13 @@ build = { modules = { ssl = { defines = { - "WIN32", "NDEBUG", "_WINDOWS", "_USRDLL", "LUASEC_EXPORTS", "BUFFER_DEBUG", "LUASEC_API=__declspec(dllexport)" + "WIN32", "NDEBUG", "_WINDOWS", "_USRDLL", "LSEC_EXPORTS", "BUFFER_DEBUG", "LSEC_API=__declspec(dllexport)" }, libdirs = { "$(OPENSSL_LIBDIR)", }, libraries = { - "ssl", "crypto", "wsock32", + "libeay32", "ssleay32", "ws2_32" }, incdirs = { "$(OPENSSL_INCDIR)", "src/", "src/luasocket" From 9183cb724f57aa497650b2f9ea1d17c7bce9aba0 Mon Sep 17 00:00:00 2001 From: Thijs Schreijer Date: Mon, 2 Mar 2015 13:25:49 +0100 Subject: [PATCH 2/2] added bindir to lib section, as mingw links against dll's to be found in bindir --- luasec-0.5-3.rockspec | 1 + 1 file changed, 1 insertion(+) diff --git a/luasec-0.5-3.rockspec b/luasec-0.5-3.rockspec index 7c37039..caa6665 100644 --- a/luasec-0.5-3.rockspec +++ b/luasec-0.5-3.rockspec @@ -78,6 +78,7 @@ build = { }, libdirs = { "$(OPENSSL_LIBDIR)", + "$(OPENSSL_BINDIR)", }, libraries = { "libeay32", "ssleay32", "ws2_32"