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

编译 nginx 时使用的--with-ld-opt 选项有对应的环境变量吗?

  •  
  •   fourstring · Feb 21, 2018 · 4657 views
    This topic created in 3076 days ago, the information mentioned may be changed or developed.

    手上有一个别的程序需要静态编译,然而./configure 里却没有对应的选项。我可以用 CFLAGS="-static"来实现--with-cc-opt 的效果,那么要静态链接库的话有对应的环境变量吗?还是说只能手动改 Makefile?

    fourstring
        1
    fourstring  
    OP
       Feb 21, 2018
    似乎 LDFLAGS 可以
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2884 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 21ms · UTC 14:51 · PVG 22:51 · LAX 07:51 · JFK 10:51
    ♥ Do have faith in what you're doing.