35 lines
1.2 KiB
Plaintext
35 lines
1.2 KiB
Plaintext
![]() |
# Description: The C library used in the GNU system
|
|||
|
# URL: http://www.gnu.org/software/libc/
|
|||
|
# Maintainer: Per Lid<69>n <per@fukt.bth.se>
|
|||
|
|
|||
|
name=glibc
|
|||
|
version=2.3.5
|
|||
|
release=1
|
|||
|
source=(http://mirrors.sunsite.dk/gnu/$name/$name-$version.tar.bz2 \
|
|||
|
http://ep09.pld-linux.org/~mmazur/linux-libc-headers/linux-libc-headers-2.6.11.2.tar.bz2 \
|
|||
|
$name-$version-execvp.patch hosts resolv.conf nsswitch.conf host.conf ld.so.conf)
|
|||
|
|
|||
|
build() {
|
|||
|
mkdir -p $PKG/usr/include
|
|||
|
cp -r linux-libc-headers-2.6.11.2/include/linux $PKG/usr/include/linux
|
|||
|
cp -r linux-libc-headers-2.6.11.2/include/asm-i386 $PKG/usr/include/asm
|
|||
|
patch -p0 < $name-$version-execvp.patch
|
|||
|
mkdir build
|
|||
|
cd build
|
|||
|
../$name-$version/configure --prefix=/usr \
|
|||
|
--libexecdir=/usr/lib \
|
|||
|
--with-headers=$PKG/usr/include \
|
|||
|
--with-tls \
|
|||
|
--enable-kernel=2.6.0 \
|
|||
|
--enable-add-ons \
|
|||
|
--disable-profile \
|
|||
|
--without-gd
|
|||
|
make
|
|||
|
make check
|
|||
|
make install_root=$PKG install
|
|||
|
make install_root=$PKG localedata/install-locales
|
|||
|
cp ../{hosts,resolv.conf,nsswitch.conf,host.conf,ld.so.conf} $PKG/etc
|
|||
|
ln -sf ../usr/share/zoneinfo/UTC $PKG/etc/localtime
|
|||
|
rm -rf $PKG/usr/share/locale
|
|||
|
}
|