CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
man-pages: updated to 4.09
[crossrootfs.git] / glibc / Pkgfile
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
5 # Depends on:
6
7 name=glibc
8 version=2.24
9 release=1
10 source=(http://ftp.gnu.org/gnu/glibc/glibc-$version.tar.xz \
11 https://www.kernel.org/pub/linux/kernel/v4.x/linux-4.9.5.tar.xz \
12 hosts resolv.conf nsswitch.conf host.conf ld.so.conf)
13
14 build() {
15 # install build kernel headers
16 cd linux-4.9.5
17 make mrproper
18 make ARCH=arm64 headers_check
19 make ARCH=arm64 INSTALL_HDR_PATH=$PKG/usr headers_install
20
21 cd $SRC
22
23 mkdir build
24 cd build
25
26 cat > config.cache << EOF
27 libc_cv_forced_unwind=yes
28 EOF
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 \
36 --enable-kernel=2.6.25 \
37 --enable-add-ons \
38 --disable-profile \
39 --without-gd \
40 --with-__thread \
41 --enable-obsolete-rpc
42
43 make CC="$CC" CFLAGS="$CFLAGS"
44 make install_root=$PKG install
45
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
50
51 rm -rf $PKG/usr/share/{info,locale} \
52 $PKG/usr/bin/tzselect \
53 $PKG/usr/sbin/z{dump,ic}
54 }