if [ "$EUID" = 0 ] then echo "Please don't run this as root" exit fi git clone https://sourceware.org/git/glibc.git src --depth=1 --single-branch --branch release/2.36/master cd src git restore . git pull cd - mkdir src/build -p cd src/build pwd ../configure --sysconfdir=/etc -prefix=/usr --with-headers=/usr/include --enable-add-ons --enable-bind-now --enable-cet --enable-lock-elision --enable-multi-arch --enable-stack-protector=strong --enable-stackguard-randomization --enable-static-pie --enable-systemtap --disable-profile --disable-werror || exit 1 make -j$(nproc) || exit 1 DESTDIR=$(pwd)/../../../libfs sudo make install DESTDIR=$(realpath $DESTDIR) cd -