Ignore:
Timestamp:
07/18/2005 09:12:58 PM (19 years ago)
Author:
Matthew Burgess <matthew@…>
Children:
b959662
Parents:
b89a9df
Message:

Explain the fixincludes process, and other nearby rewording

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/gcc4/BOOK@6552 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter05/gcc-pass2.xml

    rb89a9df r4356d95  
    5959working.</para>
    6060
    61 <para>The following command adjusts where the gcc fixincludes search for headers
    62 so that it fixes only the new headers under /tools, not the ones from your host system.</para>
     61<para>Under normal circumstances, the GCC <command>fixincludes</command> script
     62scans the system for header files that need to be fixed (they may contain syntax
     63errors, for example).  The script might find that some Glibc header files on the
     64host system need to be fixed, so fixes them and puts them in the GCC private
     65include directory. In <xref linkend="chapter-building-system"/>, after the
     66newer Glibc has been installed, this private include directory will be searched
     67before the system include directory.  This may result in GCC finding the fixed
     68headers from the host system, which most likely will not match the Glibc version
     69used for the LFS system.</para>
     70
     71<para>The following command adjusts where the GCC <command>fixincludes</command>
     72script searches for headers, so that it fixes only the new headers under
     73<filename class="directory">/tools</filename>, not the ones from your host
     74system.</para>
    6375
    6476<screen><userinput>sed -i 's@\(^NATIVE_SYSTEM_HEADER_DIR =\).*@\1 /tools/include@g' \
    6577      gcc/Makefile.in</userinput></screen>
    6678
    67 <para>Make an essential adjustment:</para>
     79<para>Apply the following patch to change the location of GCC's default dynamic
     80linker (typically <filename class="libraryfile">ld-linux.so.2</filename>):</para>
    6881
    6982<screen><userinput>patch -Np1 -i ../&gcc-specs-patch;</userinput></screen>
    7083
    71 <para>The above patch changes GCC's default location of the dynamic
    72 linker (typically <filename class="libraryfile">ld-linux.so.2</filename>). It also removes
    73 <filename class="directory">/usr/include</filename> from GCC's include
    74 search path. Patching now rather than adjusting the specs file after
    75 installation ensures that the new dynamic linker is used during the
    76 actual build of GCC. That is, all of the final (and temporary)
    77 binaries created during the build will link against the new
     84<para>The above patch also removes
     85<filename class="directory">/usr/include</filename> from GCC's include search
     86path. Patching now rather than adjusting the specs file after installation
     87ensures that the new dynamic linker is used during the actual build of GCC. That
     88is, all of the binaries created during the build will link against the new
    7889Glibc.</para>
    7990
Note: See TracChangeset for help on using the changeset viewer.