Skip to content

Commit

Permalink
Add new glibc last in link library path list
Browse files Browse the repository at this point in the history
  • Loading branch information
rollbear committed Jul 10, 2024
1 parent f802fec commit 6ca76ef
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions common/install-glibc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,24 @@ if [ "$(greater_version $MIN_VERSION $CURRENT_VERSION)" == "${CURRENT_VERSION}"
then
exit 0
fi
apt install -y --no-install-recommends gawk bison texinfo gcc
apt install -y --no-install-recommends gawk bison texinfo g++
git clone -b glibc-${MIN_VERSION} --depth=1 git://sourceware.org/git/glibc
lscpu
mkdir glibc/build
pushd glibc/build
../configure --disable-sanity-checks
../configure --disable-sanity-checks --prefix=/opt/glibc

make -j 4
make -j 4 install
make install
popd
[ ! -e /usr/include/xlocale.h ] || { \
rm /usr/include/xlocale.h \
ln -s /usr/include/locale.h /usr/include/xlocale.h \
}
apt remove -y gawk bison texinfo gcc
apt autoremove -y
rm -rf glibc
if [ -e /usr/include/xlocale.h ]
then
rm /usr/include/xlocale.h
ln -s /usr/include/locale.h /usr/include/xlocale.h
fi

echo /opt/glibc/lib >> /etc/ld.so.conf.d/x86_64-linux-gnu.conf

}
rm -rf glibc
apt remove -y gawk bison texinfo g++
apt autoremove -y

0 comments on commit 6ca76ef

Please sign in to comment.