This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: finding gcc's installation prefix


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


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