Changeset d1391f0
- Timestamp:
- 09/17/2003 09:57:52 AM (21 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_0, 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:
- e2bd9bf
- Parents:
- b920e40
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter01/changelog.xml
rb920e40 rd1391f0 95 95 </para></listitem> 96 96 97 <listitem><para>September 17th, 2003 [greg]: Chapters 5 and 6 - Locking in 98 Glibc and Re-adjusting the toolchain: Do "make -C ld install" instead of "make 99 -C ld install-data-local" to install a whole new linker instead of just the 100 new ldscripts.</para></listitem> 101 97 102 <listitem><para>September 16th, 2003 [greg]: Chapters 5 and 6 - Locking in 98 103 Glibc and Re-adjusting the toolchain: Added sanity checks.</para></listitem> -
chapter05/lockingglibc.xml
rb920e40 rd1391f0 5 5 <para>Now that the temporary C libraries have been installed, we want all 6 6 the tools compiled in the rest of this chapter to be linked against these 7 libraries. To accomplish this, we need to adjust the linker 's scripts and the8 compiler'sspecs file.</para>7 libraries. To accomplish this, we need to adjust the linker and the compiler's 8 specs file.</para> 9 9 10 <para>First install the adjusted linker scripts by running the following from 11 within the <filename class="directory">binutils-build</filename> 12 directory:</para> 10 <para>First install the adjusted linker by running the following from within 11 the <filename class="directory">binutils-build</filename> directory:</para> 13 12 14 <para><screen><userinput>make -C ld install -data-local</userinput></screen></para>13 <para><screen><userinput>make -C ld install</userinput></screen></para> 15 14 16 <para>These scripts were adjusted a little while back, at the end of the first 17 pass of Binutils, and contain no mention of <filename>/lib</filename>, 18 <filename>/usr/lib</filename> or <filename>/usr/local/lib</filename>. 19 From this point onwards everything will link <emphasis>only</emphasis> 20 against the libraries in <filename>/tools/lib</filename>.</para> 15 <para>The linker was adjusted a little while back, at the end of the first 16 pass of Binutils. From this point onwards everything will link <emphasis>only 17 </emphasis> against the libraries in <filename>/tools/lib</filename>.</para> 21 18 22 <para>Now that the scripts are adjusted, you have to remove the Binutils23 build and source directories.</para>19 <para>Now that the adjusted linker is installed, you have to remove the 20 Binutils build and source directories.</para> 24 21 25 22 <para>The next thing to do is to amend our GCC specs file so that it points -
chapter06/adjustingtoolchain.xml
rb920e40 rd1391f0 8 8 in the "Locking in" stage in the beginning of the previous chapter.</para> 9 9 10 <para>The first thing to do is to adjust the linker scripts. For this we11 retained the source and build directories from the second pass over Binutils. 12 Install the adjusted linker scriptsby running the following from within the10 <para>The first thing to do is to adjust the linker. For this we retained the 11 source and build directories from the second pass over Binutils. Install the 12 adjusted linker by running the following from within the 13 13 <filename class="directory">binutils-build</filename> directory:</para> 14 14 15 <para><screen><userinput>make -C ld install -data-local</userinput></screen></para>15 <para><screen><userinput>make -C ld install</userinput></screen></para> 16 16 17 <para>The linker scripts now contain 18 no mention of <filename class="directory">/tools/lib</filename> anymore. 19 From now on every compiled program will link <emphasis>only</emphasis> 20 against the libraries in <filename>/usr/lib</filename> and 21 <filename>/lib</filename>.</para> 17 <para>From now on every compiled program will link <emphasis>only</emphasis> 18 against the libraries in <filename>/usr/lib</filename> and <filename>/lib 19 </filename>.</para> 22 20 23 21 <para>You can now remove the Binutils source and build directories.</para> … … 35 33 36 34 <para>Again, cutting and pasting the above is recommended. And just like 37 before, it is a good idea to check the linker scripts and the specs file to 38 ensure the intended changes were actually made.</para> 39 40 <para>Note that the linker scripts will still contain a reference to 41 <filename class="directory">/tools/i686-pc-linux-gnu/lib</filename>. This 42 is unavoidable, but luckily does not present a problem. There are no 43 libraries in that location as all the temporary tools libraries are 44 located in <filename class="directory">/tools/lib</filename>.</para> 35 before, it is a good idea to check the specs file to ensure the intended 36 changes were actually made.</para> 45 37 46 38 <caution><para>It is imperative at this point to stop and ensure that the -
chapter06/glibc-inst.xml
rb920e40 rd1391f0 5 5 6 6 <para>The Glibc build system is very well self-contained and will install 7 perfectly, even though our compiler specs file and linker scripts are still8 pointing at <filename>/tools</filename>. We cannot adjust the specs and 9 ldscripts before the Glibc install, because the Glibc autoconf tests would then 10 give bogusresults and thus defeat our goal of achieving a clean build.</para>7 perfectly, even though our compiler specs file and linker are still pointing 8 at <filename>/tools</filename>. We cannot adjust the specs and linker before 9 the Glibc install, because the Glibc autoconf tests would then give bogus 10 results and thus defeat our goal of achieving a clean build.</para> 11 11 12 12 <note><para>The testsuite for Glibc in this chapter is considered <emphasis> -
index.xml
rb920e40 rd1391f0 4 4 5 5 6 <!ENTITY version "2003091 6">7 <!ENTITY releasedate "September 1 6th, 2003">6 <!ENTITY version "20030917"> 7 <!ENTITY releasedate "September 17th, 2003"> 8 8 <!ENTITY nbsp " "> 9 9
Note:
See TracChangeset
for help on using the changeset viewer.