NGINX
NGINX Trac
3rd Party Modules
Security Advisories
CHANGES
OpenResty
ngx_lua
Tengine
在线学习资源
NGINX 开发从入门到精通
NGINX Modules
ngx_echo
awanganddong
V2EX  ›  NGINX

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

  •  1
     
  •   awanganddong · Feb 16, 2022 · 2341 views
    This topic created in 1578 days ago, the information mentioned may be changed or developed.

    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 replies    2022-02-16 08:45:05 +08:00
    wd
        1
    wd  
       Feb 16, 2022 via iPhone
    那个应该是个 gcc 的编译参数,我记得是什么优化?
    yemoluo
        2
    yemoluo  
       Feb 16, 2022
    百度 or gg :gcc -o -o2 -o3
    yolee599
        3
    yolee599  
       Feb 16, 2022 via Android
    gcc 的编译优化选项
    awanganddong
        4
    awanganddong  
    OP
       Feb 16, 2022
    明白了,谢谢大家。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3078 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 08:37 · PVG 16:37 · LAX 01:37 · JFK 04:37
    ♥ Do have faith in what you're doing.