tce-load -i compiletc python3.6 perl5 gettext coreutils texinfo

cd glibc-2.34

sed -e '/NOTIFY_REMOVED)/s/)/ \&\& data.attr != NULL)/' -i sysdeps/unix/sysv/linux/mq_notify.c

patch -Np1 -i ../glibc-2.34-fhs-1.patch
patch -Np1 -i ../glibc-uclibc-compat-ld-cache.patch

edit Makeconfig
remove -g -O

edit manual/libc.tcexinfo
remove @documentencoding UTF-8

mkdir build
cd build

echo "rootsbindir=/usr/sbin" > configparms

CC="gcc -mtune=generic -ggdb -Og -pipe" ../configure --prefix=/usr --disable-werror --enable-kernel=5.4.3 --enable-stack-protector=strong --with-headers=/usr/include libc_cv_slibdir=/lib --enable-obsolete-rpc --libexecdir=/usr/lib/glibc

find . -name config.make -type f -exec sed -i 's/-g -O2//g' {} \;
find . -name config.status -type f -exec sed -i 's/-g -O2//g' {} \;
find ../ -name Makeconfig -type f -exec sed -i 's/-g -O2//g' {} \;

make [7m26.726s]

sed '/test-installation/s@$(PERL)@echo not running@' -i ../Makefile

sudo make install install_root=/tmp/pkg
