From 6ca76efd6cdbdc009479e027fc15c32a642315fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fahller?= Date: Wed, 10 Jul 2024 18:58:46 +0200 Subject: [PATCH] Add new glibc last in link library path list --- common/install-glibc.sh | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/common/install-glibc.sh b/common/install-glibc.sh index 42dd6fd..4c3afa2 100755 --- a/common/install-glibc.sh +++ b/common/install-glibc.sh @@ -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 -} \ No newline at end of file +rm -rf glibc +apt remove -y gawk bison texinfo g++ +apt autoremove -y