> I recently installed an out-of-the box RedHat 6.0. Since i have a
> Pentium II, i assume i would gain performance by compiling with i686
> optimizations, and maybe by recompiling kernel, KDE and so on.......
I think it is questionable whether you'll see any significant
speed-up. The only advantage of doing this: You'll learn a lot about
Linux :-)
> So my question is : how do i do this ?
> Do i need to recompile egcs ? glibs ? in which order ?
You can recompile any of them, in any order. Problems arise if you
compile and install a *different* version from the one you are
currently using.
If you are interested in installing the same version, I'd recommend to
use source RPMs. Please see the RPM documentation on how to rebuild
packages from source RPMs.
You don't need to recompile egcs - unless you want egcs itself to run
faster, or unless you want to upgrade to a more recent version. Please
see the egcs documentation for installation instructions.
You can also configure egcs to use a different architecture by default
- in which case you don't need to pass additional flags in the later
recompilations.
> I tried to compile both egcs & then glibc-2.1.1, but when i installed
> (in /usr/local/lib), and tried to update my /etc/ld.so.conf (adding
> /usr/local/lib & then running ldconfig), i just ended crashing my system
> (ie whenever i tried to launch a process, i go a message like 'can't
> find ld-linux.so.2', and of course nothing did work at all...........)
In order to re-install glibc, it is not sufficient to just recompile
it: you need to install it. Please read the glibc documentation on how
to do this. Updating from 2.0 to 2.1 is not trivial, so read the
documentation carefully.
> Since i don't really enjoy booting from rescue disk & moving the
> /usr/local/lib dir to something else, i would appreciate some help ;-)
First read all documentation, then start compiling. Reading everything
might well take a day or so.
Regards,
Martin