updated build-script format
This commit is contained in:
@ -1,18 +1,30 @@
|
||||
glibc 2.41
|
||||
=
|
||||
https://ftp.gnu.org/gnu/libc/{name}-{version}.tar.xz
|
||||
https://ftp.gnu.org/gnu/libc/glibc-2.41.tar.xz
|
||||
|
||||
``` sh *** build.sctipt ***
|
||||
mkdir build; cd build &&
|
||||
../configure \
|
||||
--prefix=/pkg/gnu/glibc \
|
||||
--with-headers=/pkg/gnu/linux/include \
|
||||
--disable-multilib \
|
||||
--enable-install-ldconfig &&
|
||||
--with-headers=/pkg/gnu/linux/include \
|
||||
--disable-multilib \
|
||||
--enable-install-ldconfig \
|
||||
--prefix=/pkg/gnu/glibc &&
|
||||
make -j$(nproc) && make install
|
||||
```
|
||||
|
||||
``` cfg *** dependencies ***
|
||||
binutils
|
||||
``` sh *** build.config ***
|
||||
mkdir -p /pkg/gnu/glibc/{share/i18n/charmaps,lib/locale,etc/ld.so.conf.d} &&
|
||||
echo "include /pkg/gnu/glibc/etc/ld.so.conf.d/*.conf" > /pkg/gnu/glibc/etc/ld.so.conf &&
|
||||
echo "/pkg/gnu/lib" > /pkg/gnu/glibc/etc/ld.so.conf.d/lib.conf &&
|
||||
cp localedata/charmaps/* /pkg/gnu/glibc/share/i18n/charmaps/ &&
|
||||
/pkg/gnu/glibc/bin/localedef -i en_US -f UTF-8 en_US.UTF-8 &&
|
||||
sed -i 's|/pkg/gnu/glibc/lib64/ld-linux-x86-64.so.2|/pkg/gnu/glibc/lib/ld-linux-x86-64.so.2|g' /pkg/gnu/glibc/bin/ldd
|
||||
```
|
||||
|
||||
``` cfg *** build dependencies ***
|
||||
linux
|
||||
```
|
||||
|
||||
``` cfg *** run dependencies ***
|
||||
binutils
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user