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] | |
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.
Thanks, Andrew Pinski
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |