我想要编译 NRPE 静态文件,这样我就可以将编译好的二进制文件复制到一个没有gcc安装的OmniOS服务器上。虽然我更希望从存储库安装支持SSL的NRPE,但似乎并不存在这样的选项,因此我想自己编译它。然而,./configure
脚本似乎没有静态选项。
~/nrpe-2.15# ./configure --help | grep static
~/nrpe-2.15# ./configure --help | grep share
--datadir=DIR read-only architecture-independent data [PREFIX/share]
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
问题
我要如何编译一个使用 configure
的程序静态地?