|
发表于 2009-6-13 07:52:59
|
显示全部楼层
引自 http://www.linuxfromscratch.org/ ... apter08/kernel.html
LFS 手册有这麽一段:
Warning
The headers in the system's include directory should always be the ones against which Glibc was compiled, that is, the sanitised headers from this Linux kernel tarball. Therefore, they should never be replaced by either the raw kernel headers or any other kernel sanitized headers.
即是说,你的 headers 应该跟编译 glibc 时所使用的要一致,因为这样才确保 glibc 能提供的跟你编译软件时被定义的才一致
不一致未必出问题,不出问题的原因是应用的函数未必被采用
所以要替换系统的 headers,首先应该重新编译安装 glibc,也就是重建 toolchain,不过编译安装 glibc 是极高危动作,请慎之! |
|