V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
NGINX
NGINX Trac
3rd Party Modules
Security Advisories
CHANGES
OpenResty
ngx_lua
Tengine
在线学习资源
NGINX 开发从入门到精通
NGINX Modules
ngx_echo
awanganddong
V2EX  ›  NGINX

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

  •  1
     
  •   awanganddong · 2022-02-16 08:34:11 +08:00 · 1694 次点击
    这是一个创建于 802 天前的主题,其中的信息可能已经有所发展或是发生改变。

    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 不明白代码什么含义 这个的来源可以找那个官方文档

    4 条回复    2022-02-16 08:45:05 +08:00
    wd
        1
    wd  
       2022-02-16 08:35:06 +08:00 via iPhone
    那个应该是个 gcc 的编译参数,我记得是什么优化?
    GTim
        2
    GTim  
       2022-02-16 08:37:15 +08:00
    百度 or gg :gcc -o -o2 -o3
    yolee599
        3
    yolee599  
       2022-02-16 08:44:09 +08:00 via Android
    gcc 的编译优化选项
    awanganddong
        4
    awanganddong  
    OP
       2022-02-16 08:45:05 +08:00
    明白了,谢谢大家。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3718 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 04:21 · PVG 12:21 · LAX 21:21 · JFK 00:21
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.