> -----Original Message----- > From: gcc-help-owner@xxxxxxxxxxx [mailto:gcc-help-owner@xxxxxxxxxxx] On > Behalf Of Prashant Batra (prbatra) > Sent: Freitag, 10. Februar 2012 06:40 > To: gcc-help@xxxxxxxxxxx > Subject: RE: building gcc tool-chain to be used across machines > > Hi, > > If I want to build a gcc tool-chain on one machine and copy it to > different machines, and use it there, what are the things I need to > take care of. > With initial tries, I have seen that after copying a built tool chain > to a different machine, gcc tries to search for include and libs into > the paths given during building (as prefix). > > That paths may not be always present on other machines where I wish to > use the tool chain. > > Any help would be appreciated. > > Thanks, > Prashant I had similar problems. To get a relocatable toolchain I configured gcc with --prefix and --with-sysroot pointing to the same path. This made gcc use relative paths.