-
Notifications
You must be signed in to change notification settings - Fork 279
Description
The original ngx.re call link was ngx.re.find -->lua-nginx-module --> ngx_http_lua_ngx_re_find --> ngx_http_lua_ngx_re_match_helper
When compiling openresty, add the compile parameter --with-ld-opt /curl/lib/ -lcurl curl
The /lib/ directory contains the following files: libcurl.a libcurl.la libcurl.so libcurl.so.4 libcurl.so.4.3.0
./configure \ --prefix=/usr/local/openresty \ --with-ld-opt="-Wl,-rpath,/usr/local/openresty/luajit/lib \ -L/*/curl/lib/ -lcurl"
Then the function call stack for ngx.re.find becomes
ngx.re.find() --> re_match_helper -->ngx_lua_ffi_exec_regex -->ngx_http_lua_ffi_exec_regex
ngx.re.find() in regex.lua that calls lua-resty-core.
Why is that? Why does curllib affect the underlying call logic?
Help, thank you very much