Building sources and libraries against uClibc

Set the uClibc path:

export PATH=/usr/i386-linux-uclibc/usr/bin:$PATH

Download the Bering_uClibc sourcecode, patches, txt and mk files from http://leaf.cvs.sourceforge.net/leaf/src/bering-uclibc/apps/, unpack the sourcecode and copy the patch and mk files to the source directory. Apply the patches by doing (in the source directory):

gunzip source-1.2-3.patch.gz -c | patch -p1 (where source-1.2-3 is the actual name)

Read the comments in the source-name.txt file, most sources will compile out of the box, some need a little tweaking. After applying the necessary tweaks, make the "source-name.mk" file executable:

chmod 755 source-name.mk

And run:

./source-name.mk

After compilation the binaries must be stripped with:

strip -s --remove-section=.note --remove-section=.comment "binary-name"

Don't strip libraries unless explicitly noted.

For sources which need to be linked against libraries compiled against uClibc: first compile the libraries and copy the header files to the uClibc include directory and copy the libraries to the uClibc lib directory.