|
|
我想装个软件,经常能看到 static use flag。比如
- # eix lsof
- * sys-process/lsof
- Available versions: 4.77 4.78 4.78-r1 {static}
- Homepage: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/
- Description: Lists open files for running Unix processes
复制代码
不太理解 static 的作用。于是上网找到http:/www.gentoo.org/dyn/use-index.xml显示:
- static !!do not set this during bootstrap!! Causes binaries to be statically linked instead of dynamically
复制代码
不太理解为何要静态连接呢?动态不是更好吗?有何必要呢?这个lsof的static有是何种考虑呢?static究竟意味着什么呢?
谢谢 |
|