From 3aa9774abc8bd686f384824c4a80dd8fa1be25fc Mon Sep 17 00:00:00 2001 From: Greg Schafer Date: Mon, 22 Sep 2003 07:50:14 +0000 Subject: 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 --- chapter05/setting-environment.xml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'chapter05/setting-environment.xml') 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 EOF source ~/.bash_profile @@ -46,6 +47,10 @@ everything will work as expected in the chroot environment. that, as we move along through this chapter, the tools we build will get used during the rest of the building process. +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. + Now, after sourcing the just-created profile, we're all set to begin building the temporary tools that will support us in later chapters. -- cgit v1.2.3-54-g00ecf