This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Building Relocatable gcc
- From: Ian Lance Taylor <iant at google dot com>
- To: Kyle Girard <kyle at kdmanalytics dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Wed, 26 Jan 2011 07:34:14 -0800
- Subject: Re: Building Relocatable gcc
- References: <1296055661.3050.2178.camel@Tak>
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