This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: finding gcc's installation prefix
- From: Ian Lance Taylor <iant at google dot com>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 12 Mar 2009 13:56:37 -0700
- Subject: Re: finding gcc's installation prefix
- References: <m34oxywkud.fsf@multivac.cwru.edu>
prj@po.cwru.edu (Paul Jarc) writes:
> To find gcc's installation prefix, I've been using
> "gcc -print-search-dirs". That worked up until 4.3, but now gcc
> chases symlinks so it can print symlink-free paths. What I want is
> the installation path just as it was spelled in
> "./configure --prefix=...".
You can get this using "gcc -v" with a sed script.
> In my case, that spelling is an absolute
> path with no .. elements or superfluous slashes, but it does have
> symlinks. Is there any way to get that with gcc 4.3? If not, this
> patch seems to restore the behavior I want, but will it have any
> harmful consequences?
It would make things a tiny bit slower in some cases, but I don't think
it would have any other consequences.
Ian