name=glibc version=2.31 source=(http://ftp.gnu.org/gnu/glibc/glibc-$version.tar.xz) build() { cd $name-$version if [ "$MULTILIB" = "yes" ]; then mkdir -v build32 cd build32 echo slibdir=/tools/lib32 > configparms ../configure \ --prefix=/tools \ --host=i686-lfs-linux-gnu \ --build=$(../scripts/config.guess) \ --libdir=/tools/lib32 \ --enable-kernel=3.2 \ --with-headers=/tools/include \ CC="$LFS_TGT-gcc -m32" \ CXX="$LFS_TGT-g++ -m32" make make install cd - fi mkdir -v build cd build ../configure \ --prefix=/tools \ --host=$LFS_TGT \ --build=$(../scripts/config.guess) \ --enable-kernel=3.2 \ --with-headers=/tools/include make make install }