Forum: NGINX Optimal gcc parameters for building nginx from source

8c4d875614b7554c7b21f9d7409c96b6?d=identicon&s=25 Reto Haeberli (Guest)
on 2014-03-19 10:41
(Received via mailing list)
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?

Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.