Subject: Re: gcc 3.4.4
To: None <port-mac68k@netbsd.org>
From: Dave Huang <khym@azeotrope.org>
List: port-mac68k
Date: 01/20/2006 16:57:33
On Fri, Jan 20, 2006 at 05:31:59PM -0500, thelarsons3@cox.net wrote:
> One thing I've noticed, however. It seems that multiple identical
> binaries have been produced. For example, I have a cc, gcc,
> m68k--netbsdelff2.1-gcc, and m68k--netbsdelf2.1-gcc-3.4.4 that are
> of identical size. There are a couple "sets" like this. Why do I
> need these? Wouldn't symlinks to a single binary work just as well?

You'll probably find that they're hard links to each other. Check the
link count column of an "ls -l", or better, "ls -li":

2384 -r-xr-xr-x  2 root  wheel  120779 Oct 29 03:28 /usr/bin/cc
2384 -r-xr-xr-x  2 root  wheel  120779 Oct 29 03:28 /usr/bin/gcc

The "2" in the 3rd column means that the file has two names (in this
example, /usr/bin/cc, and /usr/bin/gcc), and the "2384" in the first
column is the inode number--since the inode numbers are the same,
/usr/bin/cc and /usr/bin/gcc are linked.
-- 
Name: Dave Huang         |  Mammal, mammal / their names are called /
INet: khym@azeotrope.org |  they raise a paw / the bat, the cat /
FurryMUCK: Dahan         |  dolphin and dog / koala bear and hog -- TMBG
Dahan: Hani G Y+C 30 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA+ PL++