File tree Expand file tree Collapse file tree 4 files changed +13
-1
lines changed Expand file tree Collapse file tree 4 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,10 @@ done</userinput></screen>
76
76
77
77
<screen ><userinput remap =" pre" >sed -i '/k prot/agcc_cv_libc_provides_ssp=yes' gcc/configure</userinput ></screen >
78
78
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
+
79
83
<para >GCC 文档推荐在源代码目录外创建目录编制 GCC:</para >
80
84
81
85
<screen ><userinput remap =" pre" >mkdir -v ../gcc-build
Original file line number Diff line number Diff line change @@ -79,6 +79,10 @@ mv -v gmp-&gmp-version; gmp
79
79
tar -zxf ../mpc-&mpc-version; .tar.gz
80
80
mv -v mpc-&mpc-version; mpc</userinput ></screen >
81
81
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
+
82
86
<para >再创建一个独立的编制目录:</para >
83
87
84
88
<screen ><userinput remap =" pre" >mkdir -v ../gcc-build
Original file line number Diff line number Diff line change 10
10
11
11
<title >剥离</title >
12
12
13
- <para >这一节中的步骤是可选的,但如果 LFS 分区比较小,移除不必要的项目就很有用。到现在位置编制的可执行文件和库包含大约 70MB 的不需要的调试符号。如此移除这些符号:</para >
13
+ <para >这一节中的步骤是可选的,但如果 LFS 分区比较小,移除不必要的项目就很有用。到现在为止编制的可执行文件和库包含大约 70MB 的不需要的调试符号。如此移除这些符号:</para >
14
14
15
15
<screen ><userinput >strip --strip-debug /tools/lib/*
16
16
strip --strip-unneeded /tools/{,s}bin/*</userinput ></screen >
Original file line number Diff line number Diff line change 44
44
45
45
<screen ><userinput remap =" pre" >sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in</userinput ></screen >
46
46
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
+
47
51
<para >与<xref linkend =" ch-tools-gcc-pass2" /> 相同,应用以下 <command >sed</command > 命令强制编制使用 <option >-fomit-frame-pointer</option > 编译器标记以确保编译器编制稳定:</para >
48
52
49
53
<screen ><userinput remap =" pre" >case `uname -m` in
You can’t perform that action at this time.
0 commit comments