Thanks for the reply,
I first tried this :
# ./build_ngx_pagespeed.sh -y -v 1.11.33.4 -m -n 1.11.9 -a "--with-debug --with-pcre-jit --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_auth_request_module --with-http_v2_module --with-http_dav_module --with-http_slice_module --with-threads --with-http_addition_module --with-http_geoip_module=dynamic --with-http_gunzip_module --with-http_gzip_static_module --with-http_image_filter_module=dynamic --with-http_sub_module --with-http_xslt_module=dynamic --with-stream=dynamic --with-stream_ssl_module --with-mail=dynamic --with-mail_ssl_module"
After moving the compiled ngx_pagespeed.so module to /usr/lib/nginx/modules, I tried restarting the original untouched nginx binary, and got this error :
Mar 10 16:09:24 img01 systemd[1]: Starting A high performance web server and a reverse proxy server...
Mar 10 16:09:24 img01 nginx[31803]: nginx: [emerg] module "/usr/share/nginx/modules/ngx_pagespeed.so" is not binary compatible in /etc/nginx/nginx.conf:1
Mar 10 16:09:24 img01 nginx[31803]: nginx: configuration file /etc/nginx/nginx.conf test failed
Mar 10 16:09:24 img01 systemd[1]: nginx.service: Control process exited, code=exited status=1
Mar 10 16:09:24 img01 systemd[1]: Failed to start A high performance web server and a reverse proxy server.
Mar 10 16:09:24 img01 systemd[1]: nginx.service: Unit entered failed state.
Mar 10 16:09:24 img01 systemd[1]: nginx.service: Failed with result 'exit-code'.
I also tried this :
# ./build_ngx_pagespeed.sh -y -v 1.11.33.4 -m -n 1.11.9 -a "--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' --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --modules-path=/usr/lib/nginx/modules --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-debug --with-pcre-jit --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_auth_request_module --with-http_v2_module --with-http_dav_module --with-http_slice_module --with-threads --with-http_addition_module --with-http_geoip_module=dynamic --with-http_gunzip_module --with-http_gzip_static_module --with-http_image_filter_module=dynamic --with-http_sub_module --with-http_xslt_module=dynamic --with-stream=dynamic --with-stream_ssl_module --with-mail=dynamic --with-mail_ssl_module"
Again, same error message.
Of course, if I replace the current nginx binary with the compiled one, everything works fine, but that is not what I'm trying to achieve here.
FT