Usage of uClibc - newbie question

Mike Frysinger vapier at gentoo.org
Thu Nov 17 14:04:41 UTC 2005


On Thu, Nov 17, 2005 at 02:35:40PM +0200, Leon Brits wrote:
> Is it true that if I now want to compile a program against these uClibc
> libraries, I only need to add "-nostdlib -nostartfiles" to my gcc
> command line as well as the directory path to the uClibc libraries with
> the -L switch? [Or must I use a toolchain compiled with the uClibc?]

it may be possible to go this route but it's totally unsupported by us
anymore

you should build a cross-compiler toolchain which targets uclibc ...
that means, binutils/gcc/uclibc for the target 'i386-linux-uclibc' in
your case

if you dont know how to do this, then you should try using buildroot
which will produce a toolchain for you ... there are docs included
with buildroot that explain how to use the toolchain for things other
than buildroot itself
-mike



More information about the uClibc mailing list