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 · 4638 views
    This topic created in 3063 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   ·   5443 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 07:25 · PVG 15:25 · LAX 00:25 · JFK 03:25
    ♥ Do have faith in what you're doing.