How do I compile programs with uClibc?
You will need to have your own uClibc toolchain. A toolchain consists of GNU binutils, the gcc compiler, and uClibc, all built to produce binaries for your target system linked with uClibc. You can build your own native uClibc toolchain using the uClibc buildroot system. To build your own uClibc toolchain, follow the following simple steps: • Point your web browser here, • Download of copy of buildroot • Unpack the tarball on your Linux system somewhere • Edit the Makefile as needed if you wish to change anything. • run ‘unset CC’. Then run ‘unset CXX’. Some Linux systems (i.e. Gentoo) set variables such as ‘CC’ in the system environment which really messes things up when cross compiling. • run ‘make menuconfig’ • Select the things you want to build. If you only want a toolchain, leave everything except the toolchain disabled. • save your buildroot configuration. • run ‘make’ • go eat a nice wholesome sandwich, drink a pop, call a friend, play a video game, and generally find something