【发布时间】:2019-12-19 22:32:06
【问题描述】:
大多数在线资源表明您可以静态链接 glibc,但不鼓励这样做;例如centos package repo:
The glibc-static package contains the C library static libraries
for -static linking. You don't need these, unless you link statically,
which is highly discouraged.
这些消息来源很少(或从不)说明为什么这是一个坏主意。
【问题讨论】:
-
具有讽刺意味的是,CentOS 的软件包 repo 已经过时,有时会迫使开发人员静态链接。
标签: c++ c linker glibc static-linking