CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
coreutils: updated to 8.22
[crossrootfs.git] / glibc / Pkgfile
CommitLineData
6dca1d21
JB
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
b751b192 4# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
6dca1d21
JB
5# Depends on:
6
7name=glibc
dce3ae08
VM
8version=2.19
9release=2
4551f658 10source=(http://ftp.gnu.org/gnu/glibc/glibc-$version.tar.xz \
dce3ae08 11 ftp://ftp.kernel.org/pub/linux/kernel/v3.0/linux-3.12.tar.xz \
6dca1d21
JB
12 hosts resolv.conf nsswitch.conf host.conf ld.so.conf)
13
14build() {
15 # install build kernel headers
dce3ae08 16 cd linux-3.12
6dca1d21
JB
17 make mrproper
18 make ARCH=arm headers_check
19 make ARCH=arm INSTALL_HDR_PATH=$PKG/usr headers_install
6dca1d21 20
534a14fc 21 cd $SRC
6dca1d21
JB
22
23 mkdir build
24 cd build
534a14fc
VM
25
26 cat > config.cache << EOF
eb94b6d4
VM
27libc_cv_forced_unwind=yes
28libc_cv_ctors_header=yes
29libc_cv_c_cleanup=yes
6dca1d21
JB
30EOF
31
32 ../$name-$version/configure --build=$CHOST \
33 --host=$CTARGET \
34 --prefix=/usr \
35 --libexecdir=/usr/lib \
36 --with-headers=$PKG/usr/include \
37 --with-tls \
eb94b6d4 38 --enable-kernel=2.6.25 \
6dca1d21
JB
39 --enable-add-ons \
40 --disable-profile \
41 --without-gd \
eb94b6d4
VM
42 --with-__thread \
43 --enable-obsolete-rpc
6dca1d21
JB
44
45 make CC="$CC" CFLAGS="$CFLAGS"
46 make install_root=$PKG install
534a14fc 47
6dca1d21
JB
48 cp $SRC/{hosts,resolv.conf,nsswitch.conf,host.conf,ld.so.conf} $PKG/etc
49 ln -sf ../usr/share/zoneinfo/UTC $PKG/etc/localtime
50 mkdir -p $PKG/etc/ld.so.conf.d $PKG/usr/lib/locale
51
eb94b6d4
VM
52 rm -rf $PKG/usr/share/{info,locale} \
53 $PKG/usr/bin/tzselect \
54 $PKG/usr/sbin/z{dump,ic}
6dca1d21 55}