Changeset 66e4325 for chapter05/binutils-pass1-inst.xml
- Timestamp:
- 06/03/2003 10:25:25 PM (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, 12.2, 12.2-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/loongarch-12.2, xry111/mips64el, xry111/multilib, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 592cfd6
- Parents:
- 8f999de5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter05/binutils-pass1-inst.xml
r8f999de5 r66e4325 4 4 <title>Installation of Binutils</title> 5 5 6 <para>It is important that Binutils be the first package to get compiled, 7 because both Glibc and GCC perform various tests on the available linker and 8 assembler to determine which of their own features to enable.</para> 9 6 10 <para>This package is known to behave badly when you have changed its default 7 11 optimization flags (including the -march and -mcpu options). Therefore, if 8 12 you have defined any environment variables that override default 9 13 optimizations, such as CFLAGS and CXXFLAGS, we recommend unsetting or 10 modifying them when building binutils.</para>14 modifying them when building Binutils.</para> 11 15 12 16 <para>It is recommended by the Binutils installation documentation to build … … 21 25 --prefix=/stage1 --disable-nls</userinput></screen></para> 22 26 23 <para>The meaning of the (new) configure switches are:</para>27 <para>The meaning of the configure switches is:</para> 24 28 25 29 <itemizedlist> 26 <listitem><para><userinput>--disable-nls</userinput>: This option disables 27 internationalization (also known as i18n). We don't need this for our 28 static programs and nls often causes problems when you're linking 29 statically.</para></listitem> 30 <listitem><para><userinput>--prefix=/stage1</userinput>: This tells the 31 configure script to prepare to install the Binutils programs in the 32 <filename>/stage1</filename> directory.</para></listitem> 33 <listitem><para><userinput>--disable-nls</userinput>: This disables 34 internationalization (a word often shortened to i18n). We don't need this 35 for our static programs and <emphasis>nls</emphasis> often causes problems 36 when linking statically.</para></listitem> 30 37 </itemizedlist> 31 38 … … 37 44 38 45 <itemizedlist> 39 <listitem><para><userinput>LDFLAGS="-all-static"</userinput>: This is 40 how we tell Binutils that all programs should be statically linked. Setting 41 the <emphasis>LDFLAGS</emphasis> variable is the common way of specifying we 42 want a static link to take place, however, its value and the way it is set 43 is not always the same. You'll see with the remaining packages that there 44 are different ways of setting up the <emphasis>LDFLAGS</emphasis> 45 variable.</para></listitem> 46 <listitem><para><userinput>LDFLAGS="-all-static"</userinput>: This tells 47 the linker that all the Binutils programs should be linked 48 statically.</para></listitem> 46 49 </itemizedlist> 47 50 48 <para>And finish off installingthe package:</para>51 <para>And install the package:</para> 49 52 50 53 <para><screen><userinput>make install</userinput></screen></para> 54 55 <para>Now already prepare the linker for the "locking in" of 56 <emphasis>glibc</emphasis> later on:</para> 51 57 52 58 <para><screen><userinput>make -C ld clean 53 59 make -C ld LIB_PATH=/stage1/lib</userinput></screen></para> 54 60 55 <para> Do not remove the binutils-* directories. We need them again56 later on in this chapter.</para>61 <para><emphasis>Do not yet remove</emphasis> the binutils-* directories. 62 We will need them again a bit further on in this chapter.</para> 57 63 58 64 </sect2>
Note:
See TracChangeset
for help on using the changeset viewer.