5.4. uClibc-0.9.29

The uClibc package contains ... TO BE WRITTEN

User Notes: http://wiki.linuxfromscratch.org/hlfs/wiki/uclibc

5.4.1. Installation of uClibc

The next patch adds a generic config file. This will build uClibc with standard features, including the hardening features. In chapter 6 you will be able to configure uClibc to your more specific needs:

patch -Np1 -i ../uClibc-0.9.29-config-1.patch

Put the pre-generated locale tarball where uClibc can find it:

install -v -m444 ../uClibc-locale-030818.tgz extra/locale/

Reset the installation paths:

cp -vi .config{,.orig}
sed -e 's@.*SHARED_LIB_LOADER_P.*@SHARED_LIB_LOADER_PREFIX="/tools/lib"@g' \
    -e 's@.*RUNTIME_PREFIX.*@RUNTIME_PREFIX="/tools"@g' \
    -e 's@.*DEVEL_PREFIX.*@DEVEL_PREFIX="/tools/"@g' \
    -e 's@.*KERNEL_HEADERS.*@KERNEL_HEADERS="/tools/include"@g' \
    .config.orig > .config

Then build uClibc:

make

Install uClibc:

make install

Details on this package are located in Section 6.10.5, “Contents of uClibc.”