This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Patch: relative pathnames, take 2


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]