nginx 编译扩展的这个参数是什么含义

2022-02-16 08:34:11 +08:00
 awanganddong

cd nginx-1.14.0

./configure --prefix=/home/work/app/nginx \

--with-http_realip_module
--with-http_gzip_static_module
--with-http_addition_module
--with-http_ssl_module
--with-http_v2_module
--with-http_sub_module
--without-mail_smtp_module
--without-mail_imap_module
--with-http_image_filter_module
--without-mail_pop3_module
--with-pcre=./src/pcre-8.42
--add-module=./src/ngx_devel_kit
--add-module=./src/ngx_cache_purge
--add-module=./src/headers-more-nginx-module
--add-module=./src/lua-nginx-module --with-pcre-jit
--with-openssl=./src/openssl-1.1.0h
--with-openssl-opt='-O3 -fPIC'

make -j 20

make install

上边是 nginx 编译 lua 模块, 但是对于这句 --with-openssl-opt='-O3 -fPIC' 中的 -O3 不明白代码什么含义 这个的来源可以找那个官方文档

1715 次点击
所在节点    NGINX
4 条回复
wd
2022-02-16 08:35:06 +08:00
那个应该是个 gcc 的编译参数,我记得是什么优化?
GTim
2022-02-16 08:37:15 +08:00
百度 or gg :gcc -o -o2 -o3
yolee599
2022-02-16 08:44:09 +08:00
gcc 的编译优化选项
awanganddong
2022-02-16 08:45:05 +08:00
明白了,谢谢大家。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/834125

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX