浏览代码

Chapter 5 - Setting up the environment: Added unset CC CXX CPP LD_LIBRARY_PATH LD_PRELOAD to .bash_profile to stop accidental build breakge.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2860 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Greg Schafer 22 年之前
父节点
当前提交
3aa9774abc
共有 3 个文件被更改,包括 11 次插入2 次删除
  1. 4 0
      chapter01/changelog.xml
  2. 5 0
      chapter05/setting-environment.xml
  3. 2 2
      index.xml

+ 4 - 0
chapter01/changelog.xml

@@ -94,6 +94,10 @@
 </itemizedlist>
 </itemizedlist>
 </para></listitem>
 </para></listitem>
 
 
+<listitem><para>September 22nd, 2003 [greg]: Chapter 5 - Setting up the
+environment: Added unset CC CXX CPP LD_LIBRARY_PATH LD_PRELOAD to
+.bash_profile to stop accidental build breakge.</para></listitem>
+
 <listitem><para>September 20th, 2003 [greg]: Chapter 5 - GCC Pass 2: Updated
 <listitem><para>September 20th, 2003 [greg]: Chapter 5 - GCC Pass 2: Updated
 to gcc-3.3.1-specs-2.patch. Ncurses: added --enable-overwrite and description.
 to gcc-3.3.1-specs-2.patch. Ncurses: added --enable-overwrite and description.
 </para></listitem>
 </para></listitem>

+ 5 - 0
chapter05/setting-environment.xml

@@ -12,6 +12,7 @@ LFS=/mnt/lfs
 LC_ALL=POSIX
 LC_ALL=POSIX
 PATH=/tools/bin:$PATH
 PATH=/tools/bin:$PATH
 export LFS LC_ALL PATH
 export LFS LC_ALL PATH
+unset CC CXX CPP LD_LIBRARY_PATH LD_PRELOAD
 <userinput>EOF
 <userinput>EOF
 
 
 source ~/.bash_profile</userinput></screen></para>
 source ~/.bash_profile</userinput></screen></para>
@@ -46,6 +47,10 @@ everything will work as expected in the chroot environment.</para>
 that, as we move along through this chapter, the tools we build will get used
 that, as we move along through this chapter, the tools we build will get used
 during the rest of the building process.</para>
 during the rest of the building process.</para>
 
 
+<para>The CC, CXX, CPP, LD_LIBRARY_PATH and LD_PRELOAD environment variables all
+have the potential to cause havoc with our Chapter 5 toolchain. We therefore
+unset them to prevent any chance of this happening.</para>
+
 <para>Now, after sourcing the just-created profile, we're all set to begin
 <para>Now, after sourcing the just-created profile, we're all set to begin
 building the temporary tools that will support us in later chapters.</para>
 building the temporary tools that will support us in later chapters.</para>
 
 

+ 2 - 2
index.xml

@@ -3,8 +3,8 @@
 				"/usr/share/docbook/docbookx.dtd" [
 				"/usr/share/docbook/docbookx.dtd" [
 
 
 
 
-<!ENTITY version "20030920">
-<!ENTITY releasedate "September 20th, 2003">
+<!ENTITY version "20030922">
+<!ENTITY releasedate "September 22nd, 2003">
 <!ENTITY nbsp " ">
 <!ENTITY nbsp " ">
 
 
 <!ENTITY ftp-root "ftp://ftp.linuxfromscratch.org">
 <!ENTITY ftp-root "ftp://ftp.linuxfromscratch.org">