/tools vs $LFS/tools

Daryll Hofmen daryll{remove-me} at myrealbox.com
Tue Jan 6 12:31:21 PST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I made this mistake as well at the beginning as well.  Recall that a
symbolic links is to be made in the host distribution pointing /tools
- -> /mnt/lfs/tools.  So /tools as a prefix shall work.  This also get's
around the problem of certain packages hard coding the prefix in.

        Daryll Hofmen

On January 6, 2004 01:18 pm, Brian Willkie wrote:

> 
> In the Linux from Scratch Book version 5.0 chapter 5 "Creating the
> $LFS/tools directory" the command mkdir $LFS/tools should expand to
> /mnt/lfs/tools (assuming $LFS is set to /mnt/lfs as in chapter 3). The
> book and the list archives commonly refer to a directory /tools. Is
> this just a short hand for /mnt/lfs/tools?
> 
> If so, should this line from "Installing Binutils-2.14 - Pass 1":
> 
> ../binutils-2.14/configure \
>     --prefix=/tools --disable-nls
> 
> instead read
> 
> ../binutils-2.14/configure \
>     --prefix=/mnt/lfs/tools --disable-nls
>              ^^^^^^^^
> (or --prefix=$LFS/tools...)
> 
> and the code from "Locking in Glibc"
> 
> SPECFILE=/tools/lib/gcc-lib/*/*/specs &&
> sed -e 's@ /lib/ld-linux.so.2@ /tools/lib/ld-linux.so.2 at g' \
>     $SPECFILE > tempspecfile &&
> mv -f tempspecfile $SPECFILE &&
> unset SPECFILE
> 
> instead read
> 
> SPECFILE=/tools/lib/gcc-lib/*/*/specs &&
> sed -e 's@ /lib/ld-linux.so.2@ /mnt/lfs/tools/lib/ld-linux.so.2 at g' \
>                                ^^^^^^^^
>     $SPECFILE > tempspecfile &&
> mv -f tempspecfile $SPECFILE &&
> unset SPECFILE
> 
> etc....?
> 
> 
> If not, where does the book discuss /tools and the difference between
> it and $LFS/tools?
> 
> In reading through the first few chapters, I've had a hard time following
> what the working directory is in general. For example, chapter 5
> "Installing Binutils 2.14- Pass 1"
> 
> mkdir ../binutils-build
> cd ../binutils-build
> 
> This is relative to...  ?
> 
> 
> Otherwise, it's a great work so far. Many thanks for everyone's hard work.
> 
> 
> Thanks in advance,
> Brian

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/+xsejgusE4JBGPsRAjDoAJ4wzy/qNbpv0aEq4ln43/EfY+hyMgCaA1mE
4dO2gyPsiPKe1Sqcya47X48=
=V6Q7
-----END PGP SIGNATURE-----



More information about the lfs-support mailing list