compiling gcc on the DOC

abhiram at ee.iitb.ac.in abhiram at ee.iitb.ac.in
Tue Jun 12 12:08:01 UTC 2007


hello!!
I have a 350MB diskonchip and i want linux on it. I used buildroot to
produce a root filesystem which includes busybox and uclibc libraries.
Buildroot also produces a gcc cross compiler. But i want a native compiler
to run on my diskonchip. I tried to compile gcc-2.95.3 using --with-lib
option using gcc from a knoppix cd i.e I booted from a knoppix CD, mounted
the diskonchip and tried to compile and install gcc-2.95.3. But,
apparently --with-lib option works only for cross compilers. If I dont
include that option, gcc is compiled
using the glibc of knoppix.

I could use a pre-compiled development system which will give me a native
compiler. But I want to compile it myself from the source(and hopefully
learn something along the way :D). How do I compile gcc such that it is
linked to the uclibc libraries on the diskonchip and not the glibc on the
knoppix CD.




More information about the uClibc mailing list