# Description: The C library used in the GNU system # URL: http://www.gnu.org/software/libc/ # Maintainer: Brett Goulder name=glibc version=2.7 release=1 source=(http://ftp.gnu.org/gnu/glibc/glibc-$version.tar.bz2 http://crux.nu/files/dist/kernel-headers-2.6.22.tar.bz2 hosts resolv.conf nsswitch.conf host.conf ld.so.conf locale.gen locale-gen fix-segfault.patch) build() { unset CFLAGS CXXFLAGS LDFLAGS export CFLAGS="-O2 -march=i686" export CXXFLAGS="$CFLAGS" # install build kernel headers mkdir $PKG/usr/ cp -r kernel-headers-2.6.22/include $PKG/usr chown root:root $PKG/usr #cd $name-$version #patch -p1 -i $SRC/fix-segfault.patch #cd .. mkdir build cd build ../$name-$version/configure --prefix=/usr \ --libexecdir=/usr/lib \ --with-headers=$PKG/usr/include \ --with-tls \ --enable-kernel=2.6.16 \ --enable-add-ons \ --enable-bind-now \ --disable-profile \ --without-gd make # make check make install_root=$PKG install mkdir -p $PKG/usr/lib/locale cp ../{hosts,resolv.conf,nsswitch.conf,host.conf,ld.so.conf} $PKG/etc install -m755 ../locale-gen $PKG/usr/bin install -m644 ../locale.gen $PKG/etc ln -sf ../usr/share/zoneinfo/UTC $PKG/etc/localtime }