pkgname=glibc version=2.43 build_no=1 upstream="${MIRROR_GNU_FTP}/glibc/glibc-${version}.tar.gz" function do_configure { mkdir build cd build ## Taken from LFS book echo "rootsbindir=/usr/sbin" > configparms set BISON_PKGDATADIR="/usr/share/bison" set M4=m4 conf_flags=( --prefix=/usr --host="${DISTRO_TC}" --enable-shared --enable-threads=posix --disable-nls --disable-nscd --disable-werror --enable-stack-protector=strong libc_cv_slibdir=/usr/lib ) ../configure "${conf_flags[@]}" } function do_build { cd build export PATH="/usr/bin:${PATH}" make -j$(nproc) } function do_install { cd build export PATH="/usr/bin:${PATH}" make DESTDIR=${DESTDIR} install }