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/glibc/glibc-$version.tar.xz \
11 http://ftp.kernel.org/pub/linux/kernel/v4.x/linux-4.1.tar.xz \
12 hosts resolv.conf nsswitch.conf host.conf ld.so.conf)
15 # install build kernel headers
18 make ARCH=arm64 headers_check
19 make ARCH=arm64 INSTALL_HDR_PATH=$PKG/usr headers_install
26 cat > config.cache << EOF
27 libc_cv_forced_unwind=yes
30 ../$name-$version/configure --build=$CHOST \
33 --libexecdir=/usr/lib \
34 --with-headers=$PKG/usr/include \
36 --enable-kernel=2.6.25 \
43 make CC="$CC" CFLAGS="$CFLAGS"
44 make install_root=$PKG install
46 cp $SRC/{hosts,resolv.conf,nsswitch.conf,host.conf,ld.so.conf} $PKG/etc
47 ln -sf ../usr/share/zoneinfo/UTC $PKG/etc/localtime
48 ln -s stubs-hard.h $PKG/usr/include/gnu/stubs-soft.h
49 mkdir -p $PKG/etc/ld.so.conf.d $PKG/usr/lib/locale
51 rm -rf $PKG/usr/share/{info,locale} \
52 $PKG/usr/bin/tzselect \
53 $PKG/usr/sbin/z{dump,ic}