|
在LFS中,第五章是静态编译的,如果哪个软件包不对,就会导致第六章失败,下面这个脚本能找出不是静态编译的文件,参照LFS BOOK中的软件包内容描述,就知道是哪个包出问题了。
- #!/bin/sh
- # Check if all files in /static are really static!
- for i in $(find $LFS/static -type f 2>/dev/null)
- do
- LIBS=`ldd $i 2>/dev/null | grep -v "not a dynamic executable"`
- if [ ! -z "$LIBS" ]
- then
- echo "ERROR: file $i is not linked statically"
- fi
- done
复制代码 |
|