1 # Description: The C library used in the GNU system
2 # URL: http://www.gnu.org/software/libc/
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
8 source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.xz \
9 http://ftp.gnu.org/gnu/$name/$name-ports-2.12.1.tar.bz2 \
10 http://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.35.tar.gz \
11 glibc-ignore_origin.patch \
12 Optimize-__getpagesize-a-bit.patch \
13 hosts resolv.conf nsswitch.conf host.conf ld.so.conf)
16 # install kernel headers
19 make ARCH=arm headers_check
20 make ARCH=arm INSTALL_HDR_PATH=$PKG/usr headers_install
22 mv $SRC/$name-ports-2.12.1 $SRC/$name-$version/ports
24 patch -d $SRC/$name-$version -R -p1 -i $SRC/Optimize-__getpagesize-a-bit.patch
25 patch -d $SRC/$name-$version -p1 -i $SRC/$name-ignore_origin.patch
30 ../$name-$version/configure --prefix=/usr \
31 --build=arm-crux-linux-gnueabi \
32 --libexecdir=/usr/lib \
33 --with-headers=$PKG/usr/include \
35 --enable-kernel=2.6.0 \
40 make CFLAGS="$CFLAGS -msoft-float"
41 make install_root=$PKG install
43 cp $SRC/{hosts,resolv.conf,nsswitch.conf,host.conf,ld.so.conf} $PKG/etc
44 ln -sf ../usr/share/zoneinfo/UTC $PKG/etc/localtime
45 mkdir -p $PKG/etc/ld.so.conf.d $PKG/usr/lib/locale
46 touch $PKG/etc/ld.so.cache
48 rm -rf $PKG/usr/share/{info,locale}