PCH and moving gcc binaries after installation

Daniel Kegel dank@kegel.com
Thu Mar 31 08:04:00 GMT 2005


Jim Wilson wrote:
> Moving trees around has worked for a long time, but it required 
>  manually setting the GCC_EXEC_PREFIX environment variable.
>  Cygnus got this working reliably sometime in the early '90s I think.
> 
> In gcc-3.0 and later, there is code (make_relative_prefix) that 
>  computes and sets GCC_EXEC_PREFIX for you, so now you no longer
>  need to manually set an environment variable to make it work.
>  It just works by default.
> 
> Once GCC_EXEC_PREFIX is set, it overrides pretty much all of the
>  builtin paths, and since GCC_EXEC_PREFIX is always set, either
>  explicitly by the user, or implicitly by gcc, the builtin paths should be mostly irrelevant.

Thanks, I didn't remember the specifics.
I do (thanks to Google) remember
that the same kind of support wasn't in ld until binutils-2.14:
http://sources.redhat.com/ml/binutils/2002-12/msg00818.html
- Dan



More information about the Gcc mailing list