Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Optimal gcc parameters for building nginx from source

$
0
0
Hi

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

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?

thx

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>