On 19/04/2017 18:29, Bruce Dubbs wrote:
[email protected] wrote:
I am sorry, my question is relevant:
why the target is lib while there is not any directory named lib in the
/mnt/lfs/sources/binutils-2.27/build ?

The original code is this:

x86_64) mkdir -v /tools/lib && ln -sv lib /tools/lib64 ;;

http://www.linuxfromscratch.org/lfs/view/stable/chapter05/binutils-pass1.html

The target is relative to --prefix.  It will be /tools/lib in Chapter 5.

  -- Bruce

It seems to me that the question is about the "lib" in
"ln -s lib /tools/lib64". This has nothing to do with --prefix,
but rather with how "ln -s" work. "ln -s" creates a small file
(aka a "symlink", whose name is /tools/lib64 in this case), and
that file contains a path (lib in this case). If that path does
not begin with a "/", it is relative to the directory where the
symlink resides. So here, it is relative to /tools, and
it points to /tools/lib, which is what we want.

Pierre

--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style

Reply via email to