1.1升级gcc到gcc8
yum install centos-release-scl
scl enable devtoolset-8 -- bash
source /opt/rh/devtoolset-8/enable
yum install -y devtoolset-8-gcc devtoolset-8-gcc-c++ devtoolset-8-binutils
echo "source /opt/rh/devtoolset-8/enable" >> /etc/profile
1.2升级make到4.0以上版本
wget http://mirrors.ustc.edu.cn/gnu/make/make-4.0.tar.gz
mv /usr/bin/make /usr/bin/make.bak
ln -s /usr/local/bin/make /usr/bin/make

1.3 安装bison
yum install bison
2.编译
2.1下载并解压
$ wget https://ftp.gnu.org/gnu/glibc/glibc-2.28.tar.gz
$ tar -xzvf glibc-2.28.tar.gz
$ mkdir build && cd build
2.2配置
../configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin
2.3 编译和安装
strings /lib64/libc.so.6 | grep GLIBC
