Changeset 4356d95 for chapter05/gcc-pass2.xml
- Timestamp:
- 07/18/2005 09:12:58 PM (19 years ago)
- Children:
- b959662
- Parents:
- b89a9df
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter05/gcc-pass2.xml
rb89a9df r4356d95 59 59 working.</para> 60 60 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 62 scans the system for header files that need to be fixed (they may contain syntax 63 errors, for example). The script might find that some Glibc header files on the 64 host system need to be fixed, so fixes them and puts them in the GCC private 65 include directory. In <xref linkend="chapter-building-system"/>, after the 66 newer Glibc has been installed, this private include directory will be searched 67 before the system include directory. This may result in GCC finding the fixed 68 headers from the host system, which most likely will not match the Glibc version 69 used for the LFS system.</para> 70 71 <para>The following command adjusts where the GCC <command>fixincludes</command> 72 script searches for headers, so that it fixes only the new headers under 73 <filename class="directory">/tools</filename>, not the ones from your host 74 system.</para> 63 75 64 76 <screen><userinput>sed -i 's@\(^NATIVE_SYSTEM_HEADER_DIR =\).*@\1 /tools/include@g' \ 65 77 gcc/Makefile.in</userinput></screen> 66 78 67 <para>Make an essential adjustment:</para> 79 <para>Apply the following patch to change the location of GCC's default dynamic 80 linker (typically <filename class="libraryfile">ld-linux.so.2</filename>):</para> 68 81 69 82 <screen><userinput>patch -Np1 -i ../&gcc-specs-patch;</userinput></screen> 70 83 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 86 path. Patching now rather than adjusting the specs file after installation 87 ensures that the new dynamic linker is used during the actual build of GCC. That 88 is, all of the binaries created during the build will link against the new 78 89 Glibc.</para> 79 90
Note:
See TracChangeset
for help on using the changeset viewer.