Estimated build time: 2.05 SBU Estimated required disk space: 160 MB |
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:
addr2line, ar, as, gprof, ld, nm, objcopy, objdump, ranlib, readelf, size, strings and strip
libbfd.[a,so] and libopcodes.[a,so]
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
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:
--disable-nls: This option disables internationalization (also known as i18n). We don't need this for our static programs and nls often causes problems when you're linking statically.
Continue with compiling the package:
make LDFLAGS="-all-static" |
The meaning of the make option is:
LDFLAGS="-all-static": This is how we tell Binutils that all programs should be statically linked. Setting the LDFLAGS variable is the common way of specifying we want a static link to take place, however, its value and the way it is set is not always the same. You'll see with the remaining packages that there are different ways of setting up the LDFLAGS variable.
And finish off installing the package:
make install |