Today I spend on trying building OpenSSL on Windows with the LuaSec binding library to use it from Lua on Windows. (using MinGW / GCC, not MS compilers)
Lua uses its own paths searching facilities to locate the luasec binding library, but luasec just tries to open the openssl libraries in place. This means that the luasec library is neatly tucked away in the Lua package eco system, but the openssl ones need to be located next to the process executable, which is lua.exe in this case. What I dislike most is that the lua executable is in the system path, but now also the openssl ones are...
So the question; when I build the LuaSec binding library, it links against both the Lua libraries and the openssl ones. Now I would like to statically link the openssl libraries into it. But not the lua libraries.
The result would be a single luasec dll (which includes the openssl code) that could be dynamically loaded by Lua.
Is this even possible? If so, any pointers on how to achieve this?
Thx!
PS. I saw some packaging tools, but they pack the entire application into a single executable, in this case I would like the result to be a dll.