Matthew Burgess wrote: > On Sat, 07 Aug 2010 08:06:08 +0200, Gilles Espinasse <[email protected]> wrote: >> I was working on libtool upgrade for my system, following what LFS has >> done. >> >> libtool is compiled only once in chap6, and long after it has been used >> for those chap6 compilation : glibc, binutils, gmp, mpfr, gcc, pkg-config, >> ncurses, util-linux-ng >> >> That mean we rely on host libtool to be good enough. There is even no host >> requirement for libtool. Should not libtool be compiled on chap5 too, so >> we less depend on the host? > > If a package correctly integrates libtool then it should provide its own > libtool script, and therefore not rely on the host. See > http://www.gnu.org/software/libtool/manual/libtool.html#Configuring (in > particular the Makefile.in and Makefile.am fragments there). > > The only package I know that doesn't do this correctly is NCurses, but > libtool functionality has to be explicitly enabled using > ./configure --with-libtool which we don't do. > > Therefore, nothing should rely on the host's, chapter 5's or even chapter 6's > libtool package. The reason we build it is the same as for building > autoconf and automake; there may be packages out there that required doing > an 'autoreconf' on, which may require libtool to be installed in order to > regenerate the Makefile's.
Let me add that if libtool was needed in Chapter 6, the build would fail. Inside chroot, the tools cannot access the host's copy of libtool. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
