CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
glibc: 2.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
49c8186d 8version=2.22
dce3ae08 9release=2
4551f658 10source=(http://ftp.gnu.org/gnu/glibc/glibc-$version.tar.xz \
49c8186d 11 ftp://ftp.kernel.org/pub/linux/kernel/v4.x/linux-4.1.tar.xz \
6dca1d21
JB
12 hosts resolv.conf nsswitch.conf host.conf ld.so.conf)
13
14build() {
15 # install build kernel headers
49c8186d 16 cd linux-4.1
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 27libc_cv_forced_unwind=yes
6dca1d21
JB
28EOF
29
30 ../$name-$version/configure --build=$CHOST \
31 --host=$CTARGET \
32 --prefix=/usr \
33 --libexecdir=/usr/lib \
34 --with-headers=$PKG/usr/include \
35 --with-tls \
eb94b6d4 36 --enable-kernel=2.6.25 \
6dca1d21
JB
37 --enable-add-ons \
38 --disable-profile \
39 --without-gd \
eb94b6d4
VM
40 --with-__thread \
41 --enable-obsolete-rpc
6dca1d21
JB
42
43 make CC="$CC" CFLAGS="$CFLAGS"
44 make install_root=$PKG install
534a14fc 45
6dca1d21
JB
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 mkdir -p $PKG/etc/ld.so.conf.d $PKG/usr/lib/locale
49
eb94b6d4
VM
50 rm -rf $PKG/usr/share/{info,locale} \
51 $PKG/usr/bin/tzselect \
52 $PKG/usr/sbin/z{dump,ic}
6dca1d21 53}