Changeset df77b24


Ignore:
Timestamp:
09/04/2020 07:38:44 AM (14 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, ml-11.0, multilib, trunk, xry111/git-transition, xry111/glibc-2.34, xry111/tester-nohack, xry111/usr-move
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.