Changeset a0b689e
- Timestamp:
- 02/11/2004 10:02:32 PM (20 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.0, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, v5_1, v5_1_1, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- cd1ddd7
- Parents:
- c91dd5b
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter05/binutils-pass1.xml
rc91dd5b ra0b689e 84 84 <screen><userinput>make install</userinput></screen> 85 85 86 <para>Now prepare the linker for the " locking in" of Glibclater on:</para>86 <para>Now prepare the linker for the "Adjusting" phase later on:</para> 87 87 88 88 <screen><userinput>make -C ld clean … … 108 108 <literallayout></literallayout> 109 109 110 <warning><para> Do not yet remove the Binutils build and source directories. You111 will need them again in their current state a bit further on in this 112 chapter.</para></warning>110 <warning><para><emphasis>Do not yet remove</emphasis> the Binutils build and 111 source directories. You will need them again in their current state a bit 112 further on in this chapter.</para></warning> 113 113 114 114 <!-- HACK - Force some whitespace to appease tidy --> -
chapter05/binutils-pass2.xml
rc91dd5b ra0b689e 59 59 <screen><userinput>make install</userinput></screen> 60 60 61 <para>Now prepare Binutils for the re-adjusting of the toolchainin the next61 <para>Now prepare the linker for the "Re-adjusting" phase in the next 62 62 chapter:</para> 63 63 … … 68 68 <literallayout></literallayout> 69 69 70 <warning><para> Do not yet remove the Binutils source and build directories.71 We'll need these directories again in the next chapter in the state they are in 72 now.</para></warning>70 <warning><para><emphasis>Do not yet remove</emphasis> the Binutils source and 71 build directories. You will need these directories again in the next chapter 72 in the state they are in now.</para></warning> 73 73 74 74 <!-- HACK - Force some whitespace to appease tidy --> -
chapter05/chapter05.xml
rc91dd5b ra0b689e 440 440 441 441 442 <sect1 id="ch-tools- locking-glibc">443 <title> "Locking in" Glibc</title>444 <?dbhtml filename=" lockingglibc.html" dir="chapter05"?>442 <sect1 id="ch-tools-adjusting"> 443 <title>Adjusting the toolchain</title> 444 <?dbhtml filename="adjusting.html" dir="chapter05"?> 445 445 446 446 <para>Now that the temporary C libraries have been installed, we want all 447 447 the tools compiled in the rest of this chapter to be linked against these 448 448 libraries. To accomplish this, we need to adjust the linker and the compiler's 449 specs file.</para> 450 451 <para>First install the adjusted linker by running the following from within 449 specs file. Some people would say that it is <emphasis>"black magic juju below 450 this line"</emphasis>, but it is really very simple.</para> 451 452 <para>First install the adjusted linker (adjusted at the end of the first pass 453 of Binutils) by running the following command from within 452 454 the <filename class="directory">binutils-build</filename> directory:</para> 453 455 454 456 <screen><userinput>make -C ld install</userinput></screen> 455 457 456 <para>The linker was adjusted a little while back, at the end of the first 457 pass of Binutils. From this point onwards everything will link <emphasis>only 458 </emphasis> against the libraries in <filename>/tools/lib</filename>.</para> 458 <para>From this point onwards everything will link <emphasis>only</emphasis> 459 against the libraries in <filename>/tools/lib</filename>.</para> 459 460 460 461 <note><para>If you somehow missed the earlier warning to retain the Binutils … … 466 467 second pass of Binutils a bit further on.</para></note> 467 468 468 <para>Now that the adjusted linker is installed, you have to remove the469 Binutils build and source directories.</para>469 <para>Now that the adjusted linker is installed, you have to 470 <emphasis>remove</emphasis> the Binutils build and source directories.</para> 470 471 471 472 <para>The next thing to do is to amend our GCC specs file so that it points … … 542 543 <literallayout></literallayout> 543 544 544 <para>This completes the installation of the self-contained toolchain, and it545 can now be used to build the rest of the temporary tools.</para>546 547 545 </sect1> 548 546 -
chapter05/gcc-pass2.xml
rc91dd5b ra0b689e 168 168 169 169 <note><para>At this point it is strongly recommended to repeat the sanity check 170 we performed earlier in th echapter. Refer back to171 <xref linkend="ch-tools- locking-glibc"/> and repeat the check. If the results are170 we performed earlier in this chapter. Refer back to 171 <xref linkend="ch-tools-adjusting"/> and repeat the check. If the results are 172 172 wrong, then most likely you forgot to apply the above mentioned GCC Specs 173 173 patch.</para></note> -
chapter06/chapter06.xml
rc91dd5b ra0b689e 358 358 359 359 360 <sect1 id="ch-system- adjustingtoolchain">360 <sect1 id="ch-system-readjusting"> 361 361 <title>Re-adjusting the toolchain</title> 362 <?dbhtml filename="adjustingtoolchain.html" dir="chapter06"?> 363 364 <para>Now that the new C libraries have been installed, it's time to re-adjust 365 our toolchain. We'll adjust it so that it will link any newly compiled program 366 against the new C libraries. Basically, this is the reverse of what we did 367 in the "locking in" stage in the beginning of the previous chapter.</para> 368 369 <para>The first thing to do is to adjust the linker. For this we retained the 362 <?dbhtml filename="readjusting.html" dir="chapter06"?> 363 364 <para>Now that the new and final C libraries have been installed, it's time to 365 adjust our toolchain again. We'll adjust it so that it will link any newly 366 compiled program against these new libraries. This is in fact the same we did 367 in the "Adjusting" phase in the beginning of the previous chapter, even though 368 it looks like the reverse: then we guided the chain from the host's 369 <filename class="directory">{,/usr}/lib</filename> to the new 370 <filename class="directory">/tools/lib</filename>, now we guide it from that 371 same <filename class="directory">/tools/lib</filename> 372 to the LFS's <filename class="directory">{,/usr}/lib</filename>.</para> 373 374 <para>First we adjust the linker. For this we retained the 370 375 source and build directories from the second pass over Binutils. Install the 371 376 adjusted linker by running the following from within the … … 379 384 don't have access to them, don't worry, all is not lost. Just ignore the above 380 385 command. The result will be that the next package, Binutils, will link against 381 the Glibclibraries in <filename class="directory">/tools</filename> rather382 than <filename class="directory"> /usr</filename>. This is not ideal, however,383 our testing has shown that the resulting Binutils program binaries should be 384 identical.</para></note>386 the C libraries in <filename class="directory">/tools</filename> rather 387 than <filename class="directory">{,/usr}/lib</filename>. This is not ideal, 388 however, our testing has shown that the resulting Binutils program binaries 389 should be identical.</para></note> 385 390 386 391 <para>From now on every compiled program will link <emphasis>only</emphasis> -
chapter06/gcc.xml
rc91dd5b ra0b689e 91 91 <note><para>At this point it is strongly recommended to repeat the sanity check 92 92 we performed earlier in this chapter. Refer back to 93 <xref linkend="ch-system- adjustingtoolchain"/> and repeat the check. If the results93 <xref linkend="ch-system-readjusting"/> and repeat the check. If the results 94 94 are wrong, then most likely you erroneously applied the GCC Specs patch from 95 95 <xref linkend="chapter-temporary-tools"/>.</para></note>
Note:
See TracChangeset
for help on using the changeset viewer.