[uClibc] manually building gcc and binutils

Alan Hourihane alanh at fairlite.demon.co.uk
Thu Jan 15 09:58:30 UTC 2004


On Thu, Jan 15, 2004 at 10:46:28AM +0100, Mario Premke wrote:
> 
> Hello,
> I want to build a gcc 3.3.2 and binutils 2.14 in a way that they use uClibc
> as the standard library. Since I don't want to build a cross compilation
> enviroment, I first build uC-libc with my original gcc and now configure
> 
> the binutils with
> '--includedir=/PATH_TO_UCLIBC/include --libdir=/PATH_TO_UCLIBC/libc --prefi
> x=/BIN_DIR'
> and gcc with
> '--with-headers=/PATH_TO_UCLIBC/include --with-libs=/PATH_TO_UCLIBC/libc --
> prefix=/BIN_DIR'
> 
> Will that build a gcc which takes uC-libc as it's standard library?

No. There's a bunch of fixes that need to be applied to gcc and binutils
to get it to find the right libraries in place of the normal libc environment.

The buildroot environment is big!, but the toolchain is a lot smaller to
build. I've even just hacked up my toolchain to only build gcc and binutils.

So I suggest you start with the toolchain - it has all the stuff you need.

Alan.



More information about the uClibc mailing list