Glibc2 on Linux: Other useful documents

Note that this documentation is historic. It may no longer be very relevant. There will be no updates or further releases.

The GNU Libc2 with Linux site (no longer online) contains a wealth of information regarding glibc-2 and lots of pointers to other documents.

Stefan Morrell describes how you can migrate completely to glibc2, making it the default environment. His page is called Migrating to Gnu 'C' Library Version 2 (or how I did it!).

There is a very useful document about installing Glibc-2, called The Glibc 2 HOWTO. It shows a quick-and-dirty way of installing glibc without having to recompile gcc. There is a major downside to the method presented there: you have to use some very ugly command-line parameters to compile even the smallest test program. The reason therefor is that I recommend installing a cross-compiler, while in this document you use one compiler for both targets.

The HOWTO way:

(bash) gcc -b i486-linuxglibc2 -nostdinc -I/usr/i486-linuxglibc2/include \
-I/usr/lib/gcc-lib/i486-linuxglibc2/2.7.2.2/include hello.c -o hello

Our way:

(bash) export PATH=/usr/i486-linux-libc6/bin:"$PATH"
(bash) gcc -o hello hello.c

or alternatively:

(bash) gcc -b i486-linux-libc6 -o hello hello.c