2009/9/6 Marcus Wanner <[email protected]>:

> Ok, thanks!
> It would be annoying to have to rebuild everything just to get a new
> compiler...
> One more question:
> Would it be a bad idea to build and install new versions
> binutils/gcc/glibc alongside the old ones, so any statically-linked
> programs built with the old ones will still have the correct versions of
> their libraries, but the new ones can be used to compile new programs?
>
> Marcus

 I don't have a problem with installing parallel toolchains,
I've done it in the past to try out a newer compiler
(so, only binutils and gcc, this was before gmp and mpfr
were required) - in a different $PREFIX.  I don't think it's
sensible to try to install multiple versions of glibc.

 But, I think you misunderstand my point about static
libs : linking to these happens when a package is built.
After that, the required functions are part of the
executable program, not picked up at run-time.

 So far, I haven't had time to identify which static libs
from the toolchain are actually needed (ISTR there
was a post in the last couple of months which gave
some pointers, on one of the LFS or BLFS lists) so
for the moment I just accept that static toolchain libs
might be being used (e.g. the /usr/lib/gcc/*/*/lib*.a
libs as well as static libs from glibc - I think I already
prevent all the non-toolchain static libs in my system
from being available for general use.  I did identify that
at least one static toolchain lib was needed during
the build of the toolchain, but I forget which : for the
moment the only toolchain libs that I can say are not
required by my builds are libiberty and libbsd-compat.

 Of course, most people using LFS don't seem to
have strong views about static libs, and probably
don't worry about vulnerabilities in their systems.
:-(

 If the system is being built only for the learning
experience, it doesn't really matter.  If you want to
use it for real, 6.5 should be a lot better than 6.3
(disclaimer - I still haven't built 6.5, sorting out my
upgraded desktop is taking a very long time).

ĸen
-- 
After tragedy, and farce, "OMG poneys!"
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to