aboutsummaryrefslogtreecommitdiffstats
path: root/chapter04/settingenviron.xml
diff options
context:
space:
mode:
authorThomas Trepl <thomas@linuxfromscratch.org>2020-09-25 08:04:54 +0000
committerThomas Trepl <thomas@linuxfromscratch.org>2020-09-25 08:04:54 +0000
commitc69f87069daf61bc319086b3b915a16acf235389 (patch)
tree7e8e4e9ec733e59a015aa3a4174397f9dd4f4f49 /chapter04/settingenviron.xml
parent35e5addf4b32ea9e5ddce55905680e4b59a88a46 (diff)
Merge changes from trunk to multilib
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multilib@12048 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter04/settingenviron.xml')
-rw-r--r--chapter04/settingenviron.xml17
1 files changed, 15 insertions, 2 deletions
diff --git a/chapter04/settingenviron.xml b/chapter04/settingenviron.xml
index 9427d228f..c1fe6b75b 100644
--- a/chapter04/settingenviron.xml
+++ b/chapter04/settingenviron.xml
@@ -46,7 +46,8 @@ LFS_TGT=$(uname -m)-lfs-linux-gnu
PATH=/usr/bin
if [ ! -L /bin ]; then PATH=/bin:$PATH; fi
PATH=$LFS/tools/bin:$PATH
-export LFS LC_ALL LFS_TGT PATH</literal>
+CONFIG_SITE=$LFS/usr/share/config.site
+export LFS LC_ALL LFS_TGT PATH CONFIG_SITE</literal>
EOF</userinput></screen>
<screen arch="ml_32,ml_x32,ml_all"><userinput>cat &gt; ~/.bashrc &lt;&lt; "EOF"
<literal>set +h
@@ -157,7 +158,19 @@ EOF</userinput></screen>
</varlistentry>
<varlistentry>
- <term><parameter>export LFS LC_ALL LFS_TGT PATH</parameter></term>
+ <term><parameter>CONFIG_SITE=$LFS/usr/share/config.site</parameter></term>
+ <listitem>
+ <para>In <xref linkend="chapter-cross-tools"/> and
+ <xref linkend="chapter-temporary-tools"/>, if this variable is not set,
+ <command>configure</command> scripts
+ may attempt to load configuration items specific to some distributions from
+ <filename>/usr/share/config.site</filename> on the host system. Override
+ it to prevent potential contamination from the host.</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term><parameter>export ...</parameter></term>
<listitem>
<para>While the above commands have set some variables, in order
to make them visible within any sub-shells, we export them.</para>