1 | <sect2><title> </title><para> </para></sect2>
|
---|
2 |
|
---|
3 | <sect2><title>Installation of Binutils</title>
|
---|
4 |
|
---|
5 | <para>This package is known to behave badly when you have changed its
|
---|
6 | default optimization flags (including the -march and -mcpu options). Binutils
|
---|
7 | is best left alone. Therefore, if you have defined any environment variables
|
---|
8 | that override default optimizations, such as CFLAGS and CXXFLAGS, we
|
---|
9 | recommend unsetting or modifying them when building binutils. You have
|
---|
10 | been warned.</para>
|
---|
11 |
|
---|
12 | <para>It is recommended by the Binutils installation documentation to build
|
---|
13 | Binutils outside of the source directory. Create the build directory:</para>
|
---|
14 |
|
---|
15 | <para><screen><userinput>mkdir ../binutils-build &&
|
---|
16 | cd ../binutils-build</userinput></screen></para>
|
---|
17 |
|
---|
18 | <para>Next, prepare Binutils to be compiled:</para>
|
---|
19 |
|
---|
20 | <para><screen><userinput>../binutils-&binutils-version;/configure --prefix=/usr --enable-shared</userinput></screen></para>
|
---|
21 |
|
---|
22 | <para>Continue with compiling the package:</para>
|
---|
23 |
|
---|
24 | <para><screen><userinput>make tooldir=/usr</userinput></screen></para>
|
---|
25 |
|
---|
26 | <para>Normally, the <emphasis>tooldir</emphasis> (the directory where the
|
---|
27 | executables end up) is set to $(exec_prefix)/$(target_alias) which expands
|
---|
28 | into, for example, /usr/i686-pc-linux-gnu. Since we only build for our
|
---|
29 | own system, we don't need this target specific directory in /usr. That
|
---|
30 | setup would be used if the system was used to cross-compile (for example
|
---|
31 | compiling a package on the Intel machine that generates code that can be
|
---|
32 | executed on Apple PowerPC machines).</para>
|
---|
33 |
|
---|
34 | <para>Install the package:</para>
|
---|
35 |
|
---|
36 | <para><screen><userinput>make tooldir=/usr install</userinput></screen></para>
|
---|
37 |
|
---|
38 | <para>Install the info pages:</para>
|
---|
39 |
|
---|
40 | <para><screen><userinput>make tooldir=/usr install-info</userinput></screen></para>
|
---|
41 |
|
---|
42 | <para>Some packages require the <emphasis>libiberty</emphasis> header
|
---|
43 | in order to build. To honor those packages, install the file:</para>
|
---|
44 |
|
---|
45 | <para><screen><userinput>cp ../binutils-&binutils-version;/include/libiberty.h /usr/include</userinput></screen></para>
|
---|
46 |
|
---|
47 | </sect2>
|
---|
48 |
|
---|