[lfs-support] ln -sv ../usr/bin/cpp /lib

Simon Geard delgarde at ihug.co.nz
Wed Mar 21 01:07:28 PDT 2012

On Tue, 2012-03-20 at 16:50 +0200, Alexander Kapshuk wrote:
> So in other words, 'ln -sv ../usr/bin/cpp /lib' and 'ln
> -sv /usr/bin/cpp /lib' are equivalent?

Not quite, and the difference can be seen when you look at the link
*outside* the chroot environment (i.e where the filesystem is mounted
to /mnt/lfs).

The /lib directory becomes /mnt/lfs/lib, and so the first link now
expands to /mnt/lfs/usr/bin/cpp. However, the second link is an absolute
path, and so still points to /usr/bin/cpp - not to the file it was
intended to point at.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-support/attachments/20120321/df517f54/attachment.sig>

More information about the lfs-support mailing list