Installing Binutils-2.13.2

Estimated build time:           2.05 SBU
Estimated required disk space:  160 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 in a dedicated directory:

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

Next, prepare Binutils to be compiled:

../binutils-2.13.2/configure --prefix=$LFS/static --disable-nls

The meaning of the (new) configure switches are:

Continue with compiling the package:

make LDFLAGS="-all-static"

The meaning of the make option is:

And finish off installing the package:

make install