Skip to content

Commit 16c630d

Browse files
committed
do not build .info file while compile gcc
1 parent 905a58d commit 16c630d

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

chapter05/gcc-pass1.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ done</userinput></screen>
7676

7777
<screen><userinput remap="pre">sed -i '/k prot/agcc_cv_libc_provides_ssp=yes' gcc/configure</userinput></screen>
7878

79+
<para>不要构建 .info 文件。这些文件在新版 <command>makeinfo</command> 下无法正常编译,而且我们也不会用到。</para>
80+
81+
<screen><userinput remap="pre">sed -i 's/BUILD_INFO=info/BUILD_INFO=/' gcc/configure</userinput></screen>
82+
7983
<para>GCC 文档推荐在源代码目录外创建目录编制 GCC:</para>
8084

8185
<screen><userinput remap="pre">mkdir -v ../gcc-build

chapter05/gcc-pass2.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ mv -v gmp-&gmp-version; gmp
7979
tar -zxf ../mpc-&mpc-version;.tar.gz
8080
mv -v mpc-&mpc-version; mpc</userinput></screen>
8181

82+
<para>这次同样不要构建 .info 文件。这些文件在新版 <command>makeinfo</command> 下无法正常编译,而且我们也不会用到。</para>
83+
84+
<screen><userinput remap="pre">sed -i 's/BUILD_INFO=info/BUILD_INFO=/' gcc/configure</userinput></screen>
85+
8286
<para>再创建一个独立的编制目录:</para>
8387

8488
<screen><userinput remap="pre">mkdir -v ../gcc-build

chapter05/stripping.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<title>剥离</title>
1212

13-
<para>这一节中的步骤是可选的,但如果 LFS 分区比较小,移除不必要的项目就很有用。到现在位置编制的可执行文件和库包含大约 70MB 的不需要的调试符号。如此移除这些符号:</para>
13+
<para>这一节中的步骤是可选的,但如果 LFS 分区比较小,移除不必要的项目就很有用。到现在为止编制的可执行文件和库包含大约 70MB 的不需要的调试符号。如此移除这些符号:</para>
1414

1515
<screen><userinput>strip --strip-debug /tools/lib/*
1616
strip --strip-unneeded /tools/{,s}bin/*</userinput></screen>

chapter06/gcc.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@
4444

4545
<screen><userinput remap="pre">sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in</userinput></screen>
4646

47+
<para>一样不要构建 .info 文件。这些文件在新版 <command>makeinfo</command> 下无法正常编译,而且我们也不会用到。</para>
48+
49+
<screen><userinput remap="pre">sed -i 's/BUILD_INFO=info/BUILD_INFO=/' gcc/configure</userinput></screen>
50+
4751
<para>与<xref linkend="ch-tools-gcc-pass2"/> 相同,应用以下 <command>sed</command> 命令强制编制使用 <option>-fomit-frame-pointer</option> 编译器标记以确保编译器编制稳定:</para>
4852

4953
<screen><userinput remap="pre">case `uname -m` in

0 commit comments

Comments
 (0)