This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: prefix, etc. with dollar or tilde?
- From: Ian Lance Taylor <iant at google dot com>
- To: Jay K <jay dot krell at cornell dot edu>
- Cc: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Tue, 25 May 2010 07:33:31 -0700
- Subject: Re: prefix, etc. with dollar or tilde?
- References: <COL101-W19D5E1184C97CC631FCFD9E6E80@phx.gbl>
Jay K <jay.krell@cornell.edu> writes:
> it might be nice if I could say e.g. -prefix=~/gnu.
> Currently prefix must be a full path.
Unix does not have any path like ~/gnu. The ~ is, by convention,
expanded by the shell to something like /home/gnu. So this idea does
not make sense on Unix. Real VMS support probably requires redefining
the notion of a path in some way. E.g., DOS pathnames are also
different, and the toolchain has support for that centered on
include/filenames.h. I'm sure VMS will require different kinds of
support, but that seems to me like the place to start.
> Might also be nice for gcc to look in its own directory for cc1, or heck, even .h and .a/.lib files?
That would be an extremely bad idea. gcc should not change behaviour
based on the directory where you run it. (Unless you explcitly add
the current directory to various environment variables, which is in
itself a bad idea.)
Ian