Re: Statically compiled LuaJIT with dynamic modules on Windows

  • From: Paul K <paul@xxxxxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Tue, 26 Nov 2013 12:11:52 -0800

> What's the proper method of getting this compiled statically with exported 
> symbols?

Replying to myself. It turned out there is a much simpler way to do
what I was trying to do:

> make BUILDMODE=static CFLAGS="-DLUA_BUILD_AS_DLL -DLUA_CORE"

The combination of LUA_BUILD_AS_DLL and LUA_CORE sets LUA_API to
__declspec(dllexport) and "BUILDMODE=static" builds a static version
of the executable. Everything has been working well so far. Apologies
for the noise.

Paul.

Other related posts: