summaryrefslogtreecommitdiff
path: root/luaossl-git-0.rockspec
diff options
context:
space:
mode:
authorAlexander M Pickering <alex@cogarr.net>2024-12-19 00:44:25 -0600
committerAlexander M Pickering <alex@cogarr.net>2024-12-19 00:44:25 -0600
commita030fd39f012b22705704905c534f4fda4ffdc55 (patch)
treedb60572ceb98ef39008239e4eb4f464bde8b9210 /luaossl-git-0.rockspec
parent18b46d73b800272186d72a604bd50c921ff16bee (diff)
downloadluaossl-packaging-a030fd39f012b22705704905c534f4fda4ffdc55.tar.gz
luaossl-packaging-a030fd39f012b22705704905c534f4fda4ffdc55.tar.bz2
luaossl-packaging-a030fd39f012b22705704905c534f4fda4ffdc55.zip
work
Diffstat (limited to 'luaossl-git-0.rockspec')
-rw-r--r--luaossl-git-0.rockspec46
1 files changed, 4 insertions, 42 deletions
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 = {
24 header = "openssl/crypto.h"; 24 header = "openssl/crypto.h";
25 library = "crypto"; 25 library = "crypto";
26 }; 26 };
27 platforms = {
28 windows = {
29 OPENSSL = {
30 library = "libeay32"
31 };
32 CRYPTO = {
33 library = "ssleay32"
34 };
35 }
36 };
37} 27}
38build = { 28build = {
39 type = "builtin"; 29 type = "builtin";
@@ -87,42 +77,15 @@ build = {
87 ["openssl.x509.verify_param"] = "src/openssl.x509.verify_param.lua"; 77 ["openssl.x509.verify_param"] = "src/openssl.x509.verify_param.lua";
88 }; 78 };
89 platforms = { 79 platforms = {
90 -- Unixy systems need to link with pthreads and libm.
91 -- We also define _GNU_SOURCE in the hope for extra functionality
92 unix = {
93 modules = {
94 ["_openssl"] = {
95 libraries = {
96 nil, nil;
97 "pthread";
98 "m";
99 };
100 defines = {
101 nil, nil, nil;
102 "_GNU_SOURCE";
103 }
104 };
105 };
106 };
107 -- Only linux needs to link with libdl
108 linux = {
109 modules = {
110 ["_openssl"] = {
111 libraries = {
112 nil, nil, nil, nil;
113 "dl";
114 };
115 };
116 };
117 };
118 -- On windows, OpenSSL libraries are named differently 80 -- On windows, OpenSSL libraries are named differently
119 -- We also have to guide autoguess around some incorrect assumptions 81 -- We also have to guide autoguess around some incorrect assumptions
120 win32 = { 82 linux = {
121 modules = { 83 modules = {
122 ["_openssl"] = { 84 ["_openssl"] = {
123 libraries = { 85 libraries = {
124 "libeay32"; 86 nil, nil,
125 "ssleay32"; 87 "pthread";
88 "dl";
126 "ws2_32"; 89 "ws2_32";
127 "advapi32"; 90 "advapi32";
128 "kernel32"; 91 "kernel32";
@@ -130,7 +93,6 @@ build = {
130 defines = { 93 defines = {
131 nil, nil, nil; 94 nil, nil, nil;
132 "HAVE_SYS_PARAM_H=0"; 95 "HAVE_SYS_PARAM_H=0";
133 "HAVE_DLFCN_H=0";
134 -- Need to set version to at least Vista to get inet_pton 96 -- Need to set version to at least Vista to get inet_pton
135 "_WIN32_WINNT=0x0600"; 97 "_WIN32_WINNT=0x0600";
136 }; 98 };