> 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.