Hello,
I am using nginx and willing to link .lua files as library.
I followed Mike's guide for creating a static library
http://stackoverflow.com/questions/11317269/how-to-compile-lua-scripts-into-a-single-executable-while-still-gaining-the-fas
But when I run configure on openresty, it does not work. I have library platform.a in /tmp/files directory
./configure --with-luajit --sbin-path=/usr/sbin --pid-path=/var/run/nginx.pid -j2 --with-http_stub_status_module --with-ld-opt='-Wl,-E -L/tmp/files -lplatform
Can someone help me in getting this work?
Also, in the config I was using content_by_lua_file 'abc.lua'
How will that look when I have a static library compiled?
The code in lua file gets changed frequently, is there an option of doing the same with dynamic libraries?
Thanks
Puneet