1 | <sect2><title> </title><para> </para></sect2>
|
---|
2 |
|
---|
3 | <sect2>
|
---|
4 | <title>Re-installation of Binutils</title>
|
---|
5 |
|
---|
6 | <note><para>It's worth pointing out that the Binutils test suite we run in this
|
---|
7 | section is considered not as important as the one we run in Chapter 6.</para>
|
---|
8 | </note>
|
---|
9 |
|
---|
10 | <para>Create a separate build directory again:</para>
|
---|
11 |
|
---|
12 | <para><screen><userinput>mkdir ../binutils-build
|
---|
13 | cd ../binutils-build</userinput></screen></para>
|
---|
14 |
|
---|
15 | <para>Now prepare Binutils to be compiled:</para>
|
---|
16 |
|
---|
17 | <para><screen><userinput>../binutils-&binutils-version;/configure --prefix=/tools \
|
---|
18 | --enable-shared --with-lib-path=/tools/lib</userinput></screen></para>
|
---|
19 |
|
---|
20 | <para>The meaning of the new configure option:</para>
|
---|
21 |
|
---|
22 | <itemizedlist>
|
---|
23 | <listitem><para><userinput>--with-lib-path=/tools/lib</userinput>: This tells
|
---|
24 | the configure script to specify the default library search path. We don't want
|
---|
25 | the library search path to contain library directories from the host
|
---|
26 | system.</para></listitem>
|
---|
27 | </itemizedlist>
|
---|
28 |
|
---|
29 | <para>Before starting to build Binutils, remember to unset any environment
|
---|
30 | variables that override the default optimization flags.</para>
|
---|
31 |
|
---|
32 | <para>Compile the package:</para>
|
---|
33 |
|
---|
34 | <para><screen><userinput>make </userinput></screen></para>
|
---|
35 |
|
---|
36 | <para>Test the results (nothing should fail here):</para>
|
---|
37 |
|
---|
38 | <para><screen><userinput>make check</userinput></screen></para>
|
---|
39 |
|
---|
40 | <para>And install the package:</para>
|
---|
41 |
|
---|
42 | <para><screen><userinput>make install</userinput></screen></para>
|
---|
43 |
|
---|
44 | <para>Now prepare Binutils for the re-adjusting of the toolchain in the next
|
---|
45 | chapter:</para>
|
---|
46 |
|
---|
47 | <para><screen><userinput>make -C ld clean
|
---|
48 | make -C ld LIB_PATH=/usr/lib:/lib</userinput></screen></para>
|
---|
49 |
|
---|
50 | <caution><para>Do not yet remove the Binutils source and build
|
---|
51 | directories. We'll need these directories again in the next chapter in the
|
---|
52 | state they are in now.</para></caution>
|
---|
53 |
|
---|
54 | </sect2>
|
---|
55 |
|
---|