name=glibc version=2.35 source="http://ftp.gnu.org/gnu/glibc/glibc-$version.tar.xz" build() { cd $name-$version mkdir -v build32 cd build32 echo slibdir=/tools/lib32 > configparms ../configure \ --prefix=/tools \ --host=$LFS_TGT32 \ --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 - 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 }