31 lines
676 B
Bash
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 |