Changeset b454589
- Timestamp:
- 05/06/2020 01:02:47 PM (4 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 12.2, 12.2-rc1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/loongarch-12.2, xry111/mips64el, xry111/multilib, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- c911069
- Parents:
- 69a8b2b7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter04/settingenviron.xml
r69a8b2b7 rb454589 44 44 LC_ALL=POSIX 45 45 LFS_TGT=$(uname -m)-lfs-linux-gnu 46 PATH=$LFS/tools/bin:/bin:/usr/bin 46 PATH=/usr/bin 47 if [ ! -l /bin ]; then PATH=/bin:$PATH; fi 48 PATH=$LFS/tools/bin:$PATH 47 49 export LFS LC_ALL LFS_TGT PATH</literal> 48 50 EOF</userinput></screen> … … 109 111 110 112 <varlistentry> 111 <term><parameter>PATH=$LFS/tools/bin:/bin:/usr/bin</parameter></term> 113 <term><parameter>PATH=/usr/bin</parameter></term> 114 <listitem> 115 <para>Many modern linux distributions have merged <filename 116 class="directory">/bin</filename> and <filename 117 class="directory">/usr/bin</filename>. When this is the case, the standard 118 <envar>PATH</envar> variable needs just to be set to <filename 119 class="directory">/usr/bin/</filename> for the <xref 120 linkend="chapter-temporary-tools"/> environment. When this is not the 121 case, the following line adds <filename class="directory">/bin</filename> 122 to the path.</para> 123 </listitem> 124 </varlistentry> 125 126 <varlistentry> 127 <term><parameter>if [ ! -l /bin ]; then PATH=/bin:$PATH; fi</parameter></term> 128 <listitem> 129 <para>If <filename class="directory">/bin</filename> is not a symbolic 130 link, then it has to be added to the <envar>PATH</envar> variable.</para> 131 </listitem> 132 </varlistentry> 133 134 <varlistentry> 135 <term><parameter>PATH=$LFS/tools/bin:$PATH</parameter></term> 112 136 <listitem> 113 137 <para>By putting <filename class="directory">$LFS/tools/bin</filename> ahead of the 114 standard <envar>PATH</envar>, all the programs installed in <xref115 linkend="chapter-temporary-tools"/> are picked up by the shell immediately after116 their installation. This, combined with turning off hashing, limits the risk117 that old programs are used from the host when the same programs are available in118 the Chapter 5 environment.</para>138 standard <envar>PATH</envar>, the cross-compiler installed at the beginning 139 of <xref linkend="chapter-temporary-tools"/> is picked up by the shell 140 immediately after its installation. This, combined with turning off hashing, 141 limits the risk that the compiler from the host be used instead of the 142 cross-compiler.</para> 119 143 </listitem> 120 144 </varlistentry>
Note:
See TracChangeset
for help on using the changeset viewer.