Are the gcc build files still needed after section 5.4?
steve.crosby at gmail.com
Mon Jun 5 01:09:30 PDT 2006
On 6/5/06, m at de-minimis.co.uk <m at de-minimis.co.uk> wrote:
> On Sun, 4 Jun 2006, Randy McMurchy wrote:
> > m at de-minimis.co.uk 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
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
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
lrwxrwxrwx 1 root root 3 Jun 5 20:05 cc -> gcc
-rw-r--r-- 1 root root 0 Jun 5 20:03 gcc
More information about the lfs-support