This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Changing installation dir after building gcc
On Wed, Nov 12, 2003 at 05:26:23PM -0800, Jim Wilson wrote:
> Antti Kerola wrote:
> >Is it safe, for example, to copy the whole installation
> >directory (eg. /usr/local/) to directory /usr/mygcc on
> >another computer?
>
> This is supposed to work, but is probably rarely tested. The gcc driver
> calls make_relative_prefix to compute a relative path between the two,
> and then you get the same effect as if you had set GCC_EXEC_PREFIX to
> point at the new location.
>
> This only works if there is at least one common directory between the
> two different full pathnames.
It is often known not to work, but I've been fixing problems as I
encounter them. 3.4 and the 3.3 branch as of this afternoon should
both work fine.
I don't believe that the one common directory is still required?
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer