Next Previous Contents

11. Reinstalling statically linked software

In this section we're going to reinstall all software that has been linked statically before dynamically. It's pretty straightforward like it was when we prepared our system for the Glibc installation.

It's important that you take a close look at this section. If you decide you can't be bothered reinstalling all the previously installed software, at least look at the new libraries and programs in this section. A few programs that are already installed depend on certain libraries when dynamically linked. But these libraries aren't only used by the already installed programs; other software might require it as well, so you want to install those. Also, a few programs recommend other programs to be installed. We didn't require those programs for the Glibc and GCC installation, but we might as well install them now to avoid problems later.

Make sure you remove the old source tree first for best result (to make sure all programs are linked dynamically).

11.1 Reinstaling GCC-2.7.2.3

make LANGUAGES=c
make stage1
make "CC=stage1/xgcc -Bstage1/" "CFLAGS="-g -O2" LANGUAGES=c
make stage2
make "CC=stage2/xgcc -Bstage2/" "CFLAGS="-g -O2" LANGUAGES=c
make compare

11.2 Installing the Termcap library

11.3 Installing the Readline library

11.4 Reinstalling Bash

The just installed Bash version is compiled with the -g compiler flag, which means it's compiled with debugging information. This means that when you ever need to run bash through a debugger, the output is human readable, whereas a binary compiled without debugger information is very hard to debug. The downside is that the Bash executable is now about 1MB in size. If you remove the debug information, you'll have an executable of around 340KB in size. This is quite a difference and worth it if you don't debug programs at all.

You can edit the Makefile files whenever you compile a program so you can remove the -g compiler flags (often found in a CFLAGS variable), or you can run the strip program with one or more executables as the parameter(s). All debugging information will be deleted (this won't affect the program itself in any way whatsoever). The choice is yours.

11.5 Reinstalling Sysvinit

11.6 Reinstalling Make

11.7 Reinstalling Sed

11.8 Reinstalling Shell Utils

11.9 Reinstalling File Utils

11.10 Reinstalling + Installing Util Linux

11.11 Reinstalling Text Utils

11.12 Reinstalling Tar

11.13 Reinstalling Gzip

There is a possibility you will experience compilation problems. If this is the case, you can download a fixed version of this package from the following URL: http://tts.ookhoi.dds.nl/download/lfs-howto/gzip-1.2.4-lfs.tar.gz

11.14 Reinstalling Bison

11.15 Installing Flex

11.16 Reinstalling Binutils

11.17 Reinstalling Grep

11.18 Reinstalling Mawk

11.19 Reinstalling Find Utils

There is a possibility you will experience compilation problems. If this is the case, you can download a fixed version of this package from the following URL: http://tts.ookhoi.dds.nl/download/lfs-howto/findutils-4.1-lfs.tar.gz

11.20 Reinstalling Diff Utils

11.21 Installing Less

11.22 Reinstalling Perl

If you agree on all default values, you might want to configure the package by running Configure -d . This way you don't have to press enter all the time to accept the default values.

11.23 Reinstalling M4

11.24 Reinstalling Texinfo


Next Previous Contents