This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch: relative pathnames, take 2
- To: Jan Vroonhof <vroonhof at math dot ethz dot ch>
- Subject: Re: Patch: relative pathnames, take 2
- From: Tom Tromey <tromey at cygnus dot com>
- Date: Wed, 10 Nov 1999 07:49:24 -0800 (PST)
- Cc: Tom Tromey <tromey at cygnus dot com>, Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- References: <byzowmmr3n.fsf@bolzano.math.ethz.ch>
>>>>> "Jan" == Jan Vroonhof <vroonhof@math.ethz.ch> writes:
Jan> The idea is that argv[0] is often not a good indication of where
Jan> the tree is, it can be a symlink (say from /usr/local/bin) into
Jan> the real tree.
Jan> progname = symlink_value(progname) and restart.
I'm not sure what you mean by symlink_value. In the past I used to
use realpath() in my location-independence code. Is that what you
mean?
This might be a good thing to do. I don't plan to do it, I'm afraid.
Feel free to send a patch!
Tom