Installing Binutils-2.13.2

Estimated build time:           2.48 SBU
Estimated required disk space:  94 MB

Contents of Binutils

Last checked against version 2.12.1.

Binutils is a collection of software development tools containing a linker, assembler and other tools to work with object files and archives.

Binutils installs the following files:

Program Files

addr2line, ar, as, gprof, ld, nm, objcopy, objdump, ranlib, readelf, size, strings and strip

Library Files

libbfd.[a,so] and libopcodes.[a,so]

 

Binutils Installation Dependencies

Last checked against version 2.11.2.

Autoconf: autoconf, autoheader
Automake: aclocal, automake
Bash: sh
Binutils: ar, as, ld, nm, ranlib, strip
Diffutils: cmp
Fileutils: chmod, cp, ln, ls, mkdir, mv, rm, rmdir, touch
Flex: flex
Gcc: cc, cc1, collect2, cpp0, gcc
Glibc: ldconfig
Grep: egrep, fgrep, grep
M4: m4
Make: make
Gawk: gawk
Sed: sed
Sh-utils: basename, echo, expr, hostname, sleep, true, uname
Texinfo: install-info, makeinfo
Textutils: cat, sort, tr, uniq

 

Installation of Binutils

This package is known to behave badly when you have changed its default optimization flags (including the -march and -mcpu options). Therefore, if you have defined any environment variables that override default optimizations, such as CFLAGS and CXXFLAGS, we recommend unsetting or modifying them when building binutils.

It is recommended by the Binutils installation documentation to build Binutils outside of the source directory:

mkdir ../binutils-build &&
cd ../binutils-build

Next, prepare Binutils to be compiled:

../binutils-2.13.2/configure --prefix=/usr --enable-shared

Continue with compiling the package:

make tooldir=/usr

Normally, the tooldir (the directory where the executables end up) is set to $(exec_prefix)/$(target_alias) which expands into, for example, /usr/i686-pc-linux-gnu. Since we only build for our own system, we don't need this target specific directory in /usr. That setup would be used if the system was used to cross-compile (for example compiling a package on the Intel machine that generates code that can be executed on Apple PowerPC machines).

Install the package:

make tooldir=/usr install

Install the info pages:

make tooldir=/usr install-info

Some packages require the libiberty header in order to build. To honor those packages, install the file:

cp ../binutils-2.13.2/include/libiberty.h /usr/include