re-edit
This commit is contained in:
31
stage/bootstrap/glibc.bash
Normal file
31
stage/bootstrap/glibc.bash
Normal file
@@ -0,0 +1,31 @@
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user