Hi,
I'm looking to compile nginx statically with support for Lua. Having read this:
https://github.com/openresty/lua-nginx-module#statically-linking-pure-lua-modules
I am first building openresty and then copying build/lua-cjson-2.1.0.3/lua_cjson.o out to /tmp.
Finally I am trying to configure openresty again adding:
--with-ld-opt="/path/to/lua_cjson.o -static"
This results in:
checking for --with-ld-opt="-Wl,-rpath,/usr/local/openresty/luajit/lib /tmp/lua_cjson.o -static" ... not found
./configure: error: the invalid value in --with-ld-opt="-Wl,-rpath,/usr/local/openresty/luajit/lib /tmp/lua_cjson.o -static"
Any help would be appreciated