Hi, we are moving from our nginx, lua and luajit self-compiling way to openrestys. I have some compiler options and for the sake of the performance I just want to make sure the pre-build packages are compiled and optimized in a similar or better way. So what are the options there please?
I could not find it in
https://github.com/openresty/openresty/blob/master/util/configure since this is used for compiling openresty yourself if I understand correctly.
This is our nginx configure build with the referred modules above. I've already tested OpenResty's latest package and it seems to work for our case, but "work" does not mean it works well and is optimized.
```
./configure \
--with-cc-opt='-g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wdate-time -D_FORTIFY_SOURCE=2' \
--with-ld-opt='-Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro -Wl,-z,now -fPIC' \
--with-pcre-jit \
--with-threads \
--add-module="/tmp/src/lua-nginx-module-${NGINX_LUA_VERSION}" \
--add-module="/tmp/src/ngx_devel_kit-${NGINX_DEVEL_KIT_VERSION}" \
--with-http_ssl_module \
--with-http_realip_module \
--with-http_gzip_static_module \
--with-http_secure_link_module \
--without-mail_pop3_module \
--without-mail_imap_module \
--without-http_upstream_ip_hash_module \
--without-http_memcached_module \
--without-http_auth_basic_module \
--without-http_userid_module \
--without-http_fastcgi_module \
--without-http_uwsgi_module \
--without-http_scgi_module \
--prefix=/var/lib/nginx \
--sbin-path=/usr/sbin/nginx \
--conf-path=/etc/nginx/nginx.conf \
--http-log-path=/dev/stdout \
--error-log-path=/dev/stderr \
--lock-path=/tmp/nginx.lock \
--pid-path=/tmp/nginx.pid \
--http-client-body-temp-path=/tmp/body \
--http-proxy-temp-path=/tmp/proxy \
```
For now I'm install OpenResty like this
```
```
I'll change it to a specific version for stability and control the version upgrade myself.
Thanks for any insides,
JB