From a030fd39f012b22705704905c534f4fda4ffdc55 Mon Sep 17 00:00:00 2001 From: Alexander M Pickering Date: Thu, 19 Dec 2024 00:44:25 -0600 Subject: work --- luaossl-git-0.rockspec | 46 ++++------------------------------------------ 1 file changed, 4 insertions(+), 42 deletions(-) (limited to 'luaossl-git-0.rockspec') diff --git a/luaossl-git-0.rockspec b/luaossl-git-0.rockspec index dc740b7..1727cf8 100644 --- a/luaossl-git-0.rockspec +++ b/luaossl-git-0.rockspec @@ -24,16 +24,6 @@ external_dependencies = { header = "openssl/crypto.h"; library = "crypto"; }; - platforms = { - windows = { - OPENSSL = { - library = "libeay32" - }; - CRYPTO = { - library = "ssleay32" - }; - } - }; } build = { type = "builtin"; @@ -87,42 +77,15 @@ build = { ["openssl.x509.verify_param"] = "src/openssl.x509.verify_param.lua"; }; platforms = { - -- Unixy systems need to link with pthreads and libm. - -- We also define _GNU_SOURCE in the hope for extra functionality - unix = { - modules = { - ["_openssl"] = { - libraries = { - nil, nil; - "pthread"; - "m"; - }; - defines = { - nil, nil, nil; - "_GNU_SOURCE"; - } - }; - }; - }; - -- Only linux needs to link with libdl - linux = { - modules = { - ["_openssl"] = { - libraries = { - nil, nil, nil, nil; - "dl"; - }; - }; - }; - }; -- On windows, OpenSSL libraries are named differently -- We also have to guide autoguess around some incorrect assumptions - win32 = { + linux = { modules = { ["_openssl"] = { libraries = { - "libeay32"; - "ssleay32"; + nil, nil, + "pthread"; + "dl"; "ws2_32"; "advapi32"; "kernel32"; @@ -130,7 +93,6 @@ build = { defines = { nil, nil, nil; "HAVE_SYS_PARAM_H=0"; - "HAVE_DLFCN_H=0"; -- Need to set version to at least Vista to get inet_pton "_WIN32_WINNT=0x0600"; }; -- cgit v1.2.3-55-g6feb