Linux From Scratch: Version 5.1-pre1
Prev | Chapter 5. Constructing a temporary system | Next

# Installing Binutils-2.14 - Pass 2

    Approximate build time:  1.5 SBU
    Required disk space:     108 MB

Official download location for Binutils (2.14):
ftp://ftp.gnu.org/gnu/binutils/

For its installation Binutils depends on: Bash, Coreutils, Diffutils, GCC, Gettext, Glibc, Grep, Make, Perl, Sed, Texinfo.

##

## Re-installation of Binutils

Create a separate build directory again:

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

Now prepare Binutils for compilation:

    ../binutils-2.14/configure --prefix=/tools \
        --enable-shared --with-lib-path=/tools/lib

The meaning of the new configure option:

- `--with-lib-path=/tools/lib`: This tells the configure script to specify the default library search path. We don't want the library search path to contain library directories from the host system.

Before starting to build Binutils, remember to unset any environment variables that override the default optimization flags.

Compile the package:

    make

Compilation is now complete. As discussed earlier, we don't recommend running the test suites for the temporary tools here in this chapter. If you still want to run the Binutils test suite anyway, the following command will do so:

    make check

There should be no unexpected failures here, expected failures are fine. Unfortunately, there is no easy way to view the test results summary like there was for the previous GCC package. However, if a failure occurs here, it should be easy to spot. The output shown will contain something like:

>     make[1]: *** [check-binutils] Error 2

And install the package:

    make install

Now prepare Binutils for the re-adjusting of the toolchain in the next chapter:

    make -C ld clean
    make -C ld LIB_PATH=/usr/lib:/lib

Warning
Do not yet remove the Binutils source and build directories. We'll need these directories again in the next chapter in the state they are in now.

##

The details on this package are found in the Section called Contents of Binutils in Chapter 6.

Prev | Home | Next
Installing GCC-3.3.2 - Pass 2 | Up | Installing Gawk-3.1.3