#!/bin/sh # Reading system configuration informations, functions and package versions. source ../sysinfos source ../functions source ../packages-list # Applying patches (if any) apply_patches ${1} && # Configure options: # --disable-profile # Builds the libraries without profiling information. # --enable-add-ons # Use all the add-ons it finds. # crypt and localdata are now part of glibc. # --enable-kernel=2.x.x # Compile the library for support of linux 2.6.x kernels. # The kernel version specified must not be newer than the # version of the kernel running on the build machine. # --with-headers=/tools/include # Forces glibc to use the linux-libc-headers installed # in /tools/include, rather than those on the host, which # may be too old to support needed functionality. # --with-binutils=/tools/bin # Strictly speaking this switch is not required. But it # does ensure nothing can go wrong with regard to what # Binutils programs get used during the Glibc build. # --without-gd # Prevents the build of the memusagestat program, which # strangely enough insists on linking against the host's # libraries (libgd, libpng, libz, and so forth). # --without-selinux # When building from hosts that include SELinux functionality # (e.g., Fedora Core 3), Glibc will build with support for # SELinux. As the LFS tools environment does not contain support # for SELinux, a Glibc compiled with such support will fail to # operate correctly. cd ${LFS_TMP}/${1}-build && ../${1}/configure \ --prefix=/tools \ --disable-profile \ --enable-add-ons \ --enable-kernel=${GLIBC_KERNEL_VERSION} \ --with-headers=/tools/include \ --with-binutils=/tools/bin \ --without-gd \ --without-selinux && make -j ${MAKEJOBS} && mkdir -p /tools/etc && touch /tools/etc/ld.so.conf && make install # Return last error exit $?