Changeset df77b24


Ignore:
Timestamp:
09/04/2020 07:38:44 AM (4 years ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
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, 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/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
a2d41cf2
Parents:
b6e393b
Message:

env: set CONFIG_SITE to prevent potential contamination from host distro

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@12045 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter04/settingenviron.xml

    rb6e393b rdf77b24  
    4747if [ ! -L /bin ]; then PATH=/bin:$PATH; fi
    4848PATH=$LFS/tools/bin:$PATH
    49 export LFS LC_ALL LFS_TGT PATH</literal>
     49CONFIG_SITE=$LFS/usr/share/config.site
     50export LFS LC_ALL LFS_TGT PATH CONFIG_SITE</literal>
    5051EOF</userinput></screen>
    5152
     
    145146
    146147    <varlistentry>
    147       <term><parameter>export LFS LC_ALL LFS_TGT PATH</parameter></term>
     148      <term><parameter>CONFIG_SITE=$LFS/usr/share/config.site</parameter></term>
     149      <listitem>
     150  <para>In <xref linkend="chapter-cross-tools"/> and
     151  <xref linkend="chapter-temporary-tools"/>, if this variable is not set,
     152  <command>configure</command> scripts
     153  will attempt to load configuration from
     154  <filename>/usr/share/config.site</filename> of the host system. Override
     155  it to prevent potential contamination from host.</para>
     156      </listitem>
     157    </varlistentry>
     158
     159    <varlistentry>
     160      <term><parameter>export ...</parameter></term>
    148161      <listitem>
    149162        <para>While the above commands have set some variables, in order
Note: See TracChangeset for help on using the changeset viewer.