aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Schafer <greg@linuxfromscratch.org>2003-09-22 07:50:14 +0000
committerGreg Schafer <greg@linuxfromscratch.org>2003-09-22 07:50:14 +0000
commit3aa9774abc8bd686f384824c4a80dd8fa1be25fc (patch)
tree750aff842c5f9edceb10dcabc243c75bc513e14b
parent548d65f273ba6289d556b8dcb954e99e7987ad1e (diff)
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
-rw-r--r--chapter01/changelog.xml4
-rw-r--r--chapter05/setting-environment.xml5
-rw-r--r--index.xml4
3 files changed, 11 insertions, 2 deletions
diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml
index 55bf72592..8cb318d1d 100644
--- a/chapter01/changelog.xml
+++ b/chapter01/changelog.xml
@@ -94,6 +94,10 @@
</itemizedlist>
</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
to gcc-3.3.1-specs-2.patch. Ncurses: added --enable-overwrite and description.
</para></listitem>
diff --git a/chapter05/setting-environment.xml b/chapter05/setting-environment.xml
index 286cd2428..a7af71228 100644
--- a/chapter05/setting-environment.xml
+++ b/chapter05/setting-environment.xml
@@ -12,6 +12,7 @@ LFS=/mnt/lfs
LC_ALL=POSIX
PATH=/tools/bin:$PATH
export LFS LC_ALL PATH
+unset CC CXX CPP LD_LIBRARY_PATH LD_PRELOAD
<userinput>EOF
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
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
building the temporary tools that will support us in later chapters.</para>
diff --git a/index.xml b/index.xml
index c0d19c42e..e5e220419 100644
--- a/index.xml
+++ b/index.xml
@@ -3,8 +3,8 @@
"/usr/share/docbook/docbookx.dtd" [
-<!ENTITY version "20030920">
-<!ENTITY releasedate "September 20th, 2003">
+<!ENTITY version "20030922">
+<!ENTITY releasedate "September 22nd, 2003">
<!ENTITY nbsp " ">
<!ENTITY ftp-root "ftp://ftp.linuxfromscratch.org">