aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05/lockingglibc.xml
diff options
context:
space:
mode:
authorJeremy Utley <jeremy@linuxfromscratch.org>2003-08-31 21:45:06 +0000
committerJeremy Utley <jeremy@linuxfromscratch.org>2003-08-31 21:45:06 +0000
commitbe2dd91303d31589ebc30f8fa780e96775ff8bce (patch)
treeadaf2c96b268c8e12f68bef732403ea5f54e5471 /chapter05/lockingglibc.xml
parent09c1e758b639de7a4f632a4e22c46c2863507714 (diff)
Simplified the glibc-lockin for chapter 5, and added some verbiage on fixincludes
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2708 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter05/lockingglibc.xml')
-rw-r--r--chapter05/lockingglibc.xml18
1 files changed, 7 insertions, 11 deletions
diff --git a/chapter05/lockingglibc.xml b/chapter05/lockingglibc.xml
index 18cc6d826..694e529b3 100644
--- a/chapter05/lockingglibc.xml
+++ b/chapter05/lockingglibc.xml
@@ -35,17 +35,13 @@ unset SPECFILE</userinput></screen></para>
it all in. Or you can edit the specs file by hand if you want to: just replace
"/lib/ld-linux.so.2" with "/stage1/lib/ld-linux.so.2".</para>
-<para>Also, because we allowed GCC's "Fixincludes" script to modify our host's
-header files (and this was necessary because of improper use of the __thread
-keyword in some older software), we want to get rid of those modified header
-files, and replace them with pristine ones.</para>
-
-<para><screen><userinput>GCCDIR=/stage1/lib/gcc-lib/*/*
-rm -rf $GCCDIR/include/*
-cp $GCCDIR/install-tools/include/* $GCCDIR/include
-cp $GCCDIR/install-tools/gsyslimits.h \
- $GCCDIR/include/syslimits.h
-unset GCCDIR</userinput></screen></para>
+<para>Lastly, there is a possibility that some include files from the host
+system have found their way into gcc's private include dir. This can happen
+because of GCC's "fixincludes" process which part of the GCC build. We'll
+explain more about this further on in this chapter. For now, run the
+following commands to eliminate this possibility.</para>
+
+<para><screen><userinput>rm -f /stage1/lib/gcc-lib/*/*/include/{pthread.h,bits/sigthread.h}</userinput></screen></para>
<para>This completes the installation of the self-contained toolchain, which
can now be used to build the rest of the temporary tools.</para>