This is the mail archive of the gcc-help@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: Building Relocatable gcc


Kyle Girard <kyle@kdmanalytics.com> writes:

> Can anyone point me to or show me a basic set of configure args that I
> can use to compile a relocatable gcc toolchain on linux?  I'm not cross
> compiling or anything (host and target are both 32 linux)  After reading
> the docs I thought that I basically just had to use the options
> --with-sysroot and --prefix with equal values  for binutils and gcc and
> everything should work however during the build of gcc it fails to find
> headers.  What am I missing?  Do I need to somehow create a cross
> compiler from 32bit linux to 32bit linux?  Any help is appreciated.

What do you mean by relocatable?

If you use just the --prefix=DIR option, and run "make" and "make
install", then you can move the directory DIR wherever you like and
everything should continue to work.

Ian


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