# Description: The C library used in the GNU system # URL: http://www.gnu.org/software/libc/ # Maintainer: Hannes Mayer, crux86_64 at ecarux dot de name=glibc version=2.8 release=1 source=(http://crux.nu/files/distfiles/glibc-$version-1.tar.bz2 http://ecarux.de/crux86_64/files/kernel-headers-2.6.27.tar.bz2 hosts resolv.conf nsswitch.conf host.conf ld.so.conf) build() { # install build kernel headers mkdir -p $PKG/usr/include cp -r kernel-headers-2.6.27/include/* $PKG/usr/include/ chown root:root $PKG/usr mkdir build cd build echo "slibdir=/lib" >> configparms ../$name-$version/configure --prefix=/usr \ --libexecdir=/usr/lib \ --libdir=/usr/lib \ --with-headers=$PKG/usr/include \ --with-tls \ --enable-kernel=2.6.16 \ --enable-add-ons \ --disable-profile \ --without-gd make #make check make install_root=$PKG install make install_root=$PKG localedata/install-locales sed -i '/RTLDLIST/s%/ld-linux.so.2 /lib64%%' $PKG/usr/bin/ldd 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 }