【发布时间】:2015-03-12 22:00:52
【问题描述】:
我想构建screen 静态的,这样我就可以将它用作嵌入设备上的独立二进制文件。
screen-4.2.1# ./configure LDFLAGS="-static" && make
我收到了这个警告:
/screen.c:933: warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
原因已通过here 回答。 因此,如果我理解这一点,就不可能在静态链接二进制文件中使用 glibc 之外的“getpwnam”和其他一些函数。
所以我的问题是。有什么方法可以构建静态屏幕(因为我实际上不敢相信没有),如果没有,是否有一个可以构建静态的好的替代品?
【问题讨论】:
标签: linux compilation static glibc gnu-screen