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
4 # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
10 source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.xz \
11 http://ftp.gnu.org/gnu/$name/$name-ports-2.12.1.tar.bz2 \
12 http://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.35.tar.gz \
13 glibc-ignore_origin.patch \
14 Optimize-__getpagesize-a-bit.patch \
15 hosts resolv.conf nsswitch.conf host.conf ld.so.conf)
18 # install kernel headers
21 make ARCH=arm headers_check
22 make ARCH=arm INSTALL_HDR_PATH=$PKG/usr headers_install
24 mv $SRC/$name-ports-2.12.1 $SRC/$name-$version/ports
26 patch -d $SRC/$name-$version -R -p1 -i $SRC/Optimize-__getpagesize-a-bit.patch
27 patch -d $SRC/$name-$version -p1 -i $SRC/$name-ignore_origin.patch
32 ../$name-$version/configure --prefix=/usr \
33 --build=arm-unknown-linux-gnueabi \
34 --libexecdir=/usr/lib \
35 --with-headers=$PKG/usr/include \
37 --enable-kernel=2.6.27 \
42 make CFLAGS="$CFLAGS -msoft-float"
43 make install_root=$PKG install
45 cp $SRC/{hosts,resolv.conf,nsswitch.conf,host.conf,ld.so.conf} $PKG/etc
46 ln -sf ../usr/share/zoneinfo/UTC $PKG/etc/localtime
47 mkdir -p $PKG/etc/ld.so.conf.d $PKG/usr/lib/locale
48 touch $PKG/etc/ld.so.cache
50 rm -rf $PKG/usr/share/{info,locale}