diff options
author | Xi Ruoyao <xry111@xry111.site> | 2022-09-29 19:36:44 +0800 |
---|---|---|
committer | Xi Ruoyao <xry111@xry111.site> | 2022-09-29 19:38:47 +0800 |
commit | ea9263cbf0b256fbf06062d501e1e7db5b1d3b07 (patch) | |
tree | 3fdc3abe0f5eaa3828653879eb9c13bb87a9503c | |
parent | a243b36b8b27be1d84f84849a3eaf6e63c45534a (diff) |
toolchaintechnotes: add the rationale for cross compiling ch6 packages
"need to be cross compiled" alone does not make too much sense: we
compile these packages in chapter 8 anyway. The real reason forcing a
cross compilation is circular dependency: if building A needs B but
building B needs A, we'll have to cross compile at least one of A and B
or we won't be able to build either in the chroot.
-rw-r--r-- | part3intro/toolchaintechnotes.xml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/part3intro/toolchaintechnotes.xml b/part3intro/toolchaintechnotes.xml index 86ec87928..edfc13d26 100644 --- a/part3intro/toolchaintechnotes.xml +++ b/part3intro/toolchaintechnotes.xml @@ -320,8 +320,9 @@ checking what linker to use... /mnt/lfs/tools/i686-lfs-linux-gnu/bin/ld</compute and generally does not rely on toolchain defaults.</para> <para>As mentioned above, the standard C++ library is compiled next, followed in - <xref linkend="chapter-temporary-tools"/> by all the remaining programs that need - to be cross compiled. The install step of all those packages uses the + <xref linkend="chapter-temporary-tools"/> by other programs that need + to be cross compiled for breaking circular dependencies at build time. + The install step of all those packages uses the <envar>DESTDIR</envar> variable to force installation in the LFS filesystem.</para> |