Optimal gcc parameters for building nginx from source

Reto Haeberli reto.haeberli at comnode.net
Wed Mar 19 09:40:58 UTC 2014

Hello list

Are there recommended gcc parameters when building nginx from source - regarding performance and security?

I noticed that the prebuilt package on ubuntu used
--with-cc-opt='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2' --with-ld-opt='-Wl,-Bsymbolic-functions -Wl,-z,relro'

Is this recommended?
What would make sense resp. be a best practice approach?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20140319/129655ed/attachment.html>

More information about the nginx mailing list