Closed gengshuhui closed 6 months ago
I don't think using "previously" here is correct. This option makes the building system build target libraries with GCC pass 1, instead of the "just built" GCC pass 2 (if we don't pass --target=$LFS_TGT it'll use GCC pass 2 and the build may fail). And GCC pass 1 is exactly the "previous" built GCC here (it's prior to GCC pass 2).
I need to contact other LFS editors to see if the English book is just wrong. (Or maybe it's some English idiom I don't know but “之前” is just ambiguous in Chinese.)
The English book has been reworded.
--target=$LFS_TGT 由于我们正在交叉编译 GCC,此时不可能用之前编译得到的 GCC 二进制程序
https://www.linuxfromscratch.org/lfs/view/development/chapter06/gcc-pass2.html