diff options
Diffstat (limited to 'chapter04')
-rw-r--r-- | chapter04/settingenviron.xml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/chapter04/settingenviron.xml b/chapter04/settingenviron.xml index e605fea6e..485269e3b 100644 --- a/chapter04/settingenviron.xml +++ b/chapter04/settingenviron.xml @@ -42,8 +42,9 @@ EOF</userinput></screen> umask 022 LFS=/mnt/lfs LC_ALL=POSIX +LFS_TGT=$(uname -m)-lfs-linux-gnu PATH=/tools/bin:/bin:/usr/bin -export LFS LC_ALL PATH</literal> +export LFS LC_ALL LFS_TGT PATH</literal> EOF</userinput></screen> <para>The <command>set +h</command> command turns off @@ -76,6 +77,11 @@ EOF</userinput></screen> <quote>POSIX</quote> or <quote>C</quote> (the two are equivalent) ensures that everything will work as expected in the chroot environment.</para> + <para>The <envar>LFS_TGT</envar> variable sets a non-default, but compatible machine + description for use when building our cross compiler and linker and when cross + compiling our temporary toolchain. More information is contained in + <xref linkend="ch-tools-toolchaintechnotes" role=""/>.</para> + <para>By putting <filename class="directory">/tools/bin</filename> ahead of the standard <envar>PATH</envar>, all the programs installed in <xref linkend="chapter-temporary-tools"/> are picked up by the shell immediately after |