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: Changing installation dir after building gcc



On Nov 12, 2003, at 5:26 PM, 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.


Ada did not work though, until just a few days ago.



Thanks,
Andrew Pinski


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