canonicalizing paths
Daniel Jacobowitz
dmj+@andrew.cmu.edu
Thu Jul 12 10:58:00 GMT 2001
On Thu, Jul 12, 2001 at 01:49:48PM -0400, DJ Delorie wrote:
>
> > What's /bar/foo/../test? It's /bar/test if you canonicalize the path,
> > and /test if you don't.
> >
> > We need to be aware of this. The question becomes, when do we care?
>
> In gcc's case, the ..'s are used to recreate an install tree based on
> where gcc (or its components) is found. If gcc is in
> /foo/bar/bin/gcc, shouldn't it look for libraries in /foo/bar/lib even
> if /foo/bar/bin is a symlink?
Well, I'd say no - I'd say that the whole install tree should be
together, and a symlink to the bin directory should be resolved. That
also preserves existing behavior. The point's certainly disputable,
though!
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer
More information about the Gcc-patches
mailing list