%general-entities; ]> uClibc-&uclibc-version; uClibc cross tools <para>The uClibc package contains the main C library. This library provides the basic routines for allocating memory, searching directories, opening and closing files, reading and writing files, string handling, pattern matching, arithmetic, and so on.</para> </sect2> <sect2 role="installation"> <title>Installation of uClibc Since we are cross-compiling, we need to make sure when we configuration for our architecture we get the correct information. The following sed makes sure we are using the proper settings for our architecture: (This is a place holder for the other architectures cp extra/Configs/Config.in extra/Configs/Config.in.orig sed -e "s:default TARGET_i386:default TARGET_i386:" \ extra/Configs/Config.in.orig > extra/Configs/Config.in Create default configuration: make defconfig We will need to edit the configuration file, to make sure everything gets compiled and put into it's proper locations: cp .config .config.orig sed -e "/^CROSS_COMPILER_PREFIX/s:=.*:=\"${CLFS_TARGET}-\":" \ -e "/^KERNEL_SOURCE/s:=.*:=\"${CLFS}/usr\":" \ -e "/^SHARED_LIB_LOADER_PREFIX/s:=.*:=\"/lib\":" \ -e "/^DEVEL_PREFIX/s:=.*:=\"/usr\":" \ -e "/^RUNTIME_PREFIX/s:=.*:=\"/\":" \ .config.orig > .config Compile the package: make TARGET_ARCH=i386 We will remove the files that were copied over from our Linux Headers, these files were copied into the source directory of uClibc: rm include/{asm,asm-generic,linux} Install the package: make PREFIX=${CLFS} install Contents of uClibc Installed uClibc To Be Written Short Descriptions