|
@@ -49,9 +49,9 @@
|
|
|
如果一个软件包在打开优化时无法编译,试着关闭优化再编译它。
|
|
|
即使一个软件包在打开优化时可以编译,
|
|
|
由于源代码和编译工具的复杂相互作用,仍然存在编译不正确的风险。
|
|
|
- 另外,注意为 <option>-march</option> 和 <option>-mtune</option>
|
|
|
- 设定本书未指定的值都是没有经过验证的,它们可能在工具链软件包
|
|
|
- (Binutils、GCC 和 Glibc) 中引发问题。
|
|
|
+ 另外请注意,除本书明确说明外,
|
|
|
+ 设定 <option>-march</option> 和 <option>-mtune</option> 是未经验证的,
|
|
|
+ 它们可能在工具链软件包(Binutils、GCC 和 Glibc)中引发问题。
|
|
|
使用编译优化带来的微小性能增益往往不值得冒编译错误的风险,
|
|
|
因此我们建议第一次构建 LFS 的读者不要使用自定义的优化选项。
|
|
|
即使不用优化,得到的系统仍然会运行得很快,而且会很稳定。</para>
|
|
@@ -71,9 +71,9 @@
|
|
|
class="directory">/tools</filename>, which will cause the program to stop
|
|
|
working when that directory is removed.</para-->
|
|
|
<para>必须严格按照本章给出的顺序安装软件包,
|
|
|
- 以保证没有程序意外地获得指向
|
|
|
+ 才能保证没有程序意外地获得指向
|
|
|
<filename class="directory">/tools</filename> 的路径,
|
|
|
- 甚至将这样的路径硬编码到程序中。基于这个原因,
|
|
|
+ 甚至将这样的路径硬编码到程序中。因此,
|
|
|
不要同时构建多个软件包,这可能节约时间(特别是在双 CPU 机器上),
|
|
|
但往往会导致某个程序包含一个硬编码的,指向
|
|
|
<filename class="directory">/tools</filename> 的路径,
|
|
@@ -85,7 +85,7 @@
|
|
|
space is required during this building process. Following the installation
|
|
|
instructions, there is a list of programs and libraries (along with brief
|
|
|
descriptions of these) that the package installs.</para-->
|
|
|
- <para>在安装指令之前,每个页面都提供了软件包的信息,
|
|
|
+ <para>在安装指令之前,每个页面都提供了软件包的基本信息,
|
|
|
包括其内容的简要描述,以及构建过程大概需要的时间和磁盘空间。
|
|
|
在安装指令之后,有一个包含该软件包提供的所有程序和库的清单
|
|
|
(以及对它们的简要描述)。</para>
|
|
@@ -113,7 +113,7 @@
|
|
|
另外,将静态库链接到程序中是有害的,
|
|
|
如果需要更新这个库以解决安全问题,
|
|
|
所有使用该静态库的程序都要重新链接。程序对静态库的使用并不是显然的,
|
|
|
- 甚至可能搞不清有哪些相关程序需要链接(以及重新链接需要的过程)。
|
|
|
+ 甚至可能搞不清有哪些相关程序需要链接(或不知道如何重新链接)。
|
|
|
</para>
|
|
|
|
|
|
<!--para>In the procedures in Chapter 6, we remove or disable installation of
|
|
@@ -123,7 +123,7 @@
|
|
|
glibc and gcc, the use of static libraries remains essential to the general
|
|
|
package building process. </para-->
|
|
|
<para>在第 6 章的安装过程中,我们删除或者禁止安装多数静态库。
|
|
|
- 一般来说向 <command>configure</command> 传递
|
|
|
+ 一般来说,向 <command>configure</command> 传递
|
|
|
<option>--disable-static</option> 就可以禁用静态库,
|
|
|
但某些情况下需要其他手段。在极个别情况下,
|
|
|
特别是对于 Glibc 和 GCC,
|