Files
axe-os/stage/bootstrap/glibc.bash
ag-tsotetsi 409517b49f re-edit
2026-03-22 21:30:15 +02:00

31 lines
676 B
Bash

fetch $GLIBC_URL
fetch $GLIBC_PATCH_URL
cd "$SOURCES" && tar xf glibc-$GLIBC_VERSION.tar.xz && cd glibc-$GLIBC_VERSION
ln -fs ld-linux-x86-64.so.2 "$SYSROOT"/lib/ld-lsb-x86-64.so.3
patch -sNp1 -i "$SOURCES"/glibc-fhs-1.patch
mkdir -p build && cd build
echo "rootsbindir=/usr/sbin" > configparms
../configure \
--prefix=/usr \
--host=$TARGET \
--build=$(../scripts/config.guess) \
--disable-nscd \
--disable-nls \
libc_cv_slibdir=/usr/lib \
--enable-kernel=$LINUX_VERSION \
--silent \
--quiet
make && make DESTDIR="$SYSROOT" install
sed '/RTLDLIST=/s@/usr@@g' -i "$SYSROOT"/usr/bin/ldd
cd "$SOURCES" && rm -rf glibc-$GLIBC_VERSION