On 6/5/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
<snip>
On Sun, 4 Jun 2006, Randy McMurchy wrote: > [EMAIL PROTECTED] wrote these words on 06/04/06 19:02 CST: > >> On the other hand the link created at the end of section 5.4 >> points /tools/bin/cc at the gcc in the working directory, not at >> /tools/bin/gcc. > > Are you certain about that? :-) Dead certain. Look:
You've made one of the common mistakes (and this is\was in the FAQ) in misunderstanding the ln command. Specifically that relative paths in a symlink use the path of the link as the search path, not the current working directory. so ln -sv gcc /tools/bin/cc will result in a /tools/bin/cc symlink pointing to gcc (which, since the cc file is in /tools/bin, means effectively /tools/bin/gcc will be used) as per the following console extract. # mkdir -p /tools/bin # touch /tools/bin/gcc # ln -sv gcc /tools/bin/cc create symbolic link `/tools/bin/cc' to `gcc' # ls -l /tools/bin total 0 lrwxrwxrwx 1 root root 3 Jun 5 20:05 cc -> gcc -rw-r--r-- 1 root root 0 Jun 5 20:03 gcc -- -- - Steve Crosby -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
