# GNU libc, ftp://ftp.gnu.org/gnu/glibc/ name=glibc version=2.7 header_version=2.6.22 release=1 source=(http://ftp.gnu.org/gnu/glibc/$name-$version.tar.bz2 http://crux.nu/files/dist/kernel-headers-$header_version.tar.bz2 resolv.conf nsswitch.conf host.conf ld.so.conf) build() { mkdir $PKG/usr/ cp -r kernel-headers-2.6.22/include $PKG/usr chown root:root $PKG/usr # Build glibc cd $name-$version mkdir build cd build ../configure \ --prefix=/usr \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --with-headers=$PKG/usr/include \ --enable-add-ons \ --with-tls \ --enable-kernel=2.6.0 \ --disable-profile \ --without-gd make # Install it... make install_root=$PKG install make install_root=$PKG localedata/install-locales ln -sf /usr/share/zoneinfo/UTC $PKG/etc/localtime rm -rf $PKG/usr/share/locale install -D -m0644 ../../resolv.conf $PKG/etc/resolv.conf install -D -m0644 ../../nsswitch.conf $PKG/etc/nsswitch.conf install -D -m0644 ../../host.conf $PKG/etc/host.conf install -D -m0644 ../../ld.so.conf $PKG/etc/ld.so.conf # collides with quota rm $PKG/usr/include/rpcsvc/{rquota.h,rquota.x} }