Commit | Line | Data |
---|---|---|
eb267740 VM |
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 | |
da310f23 VM |
8 | version=2.27 |
9 | release=1 | |
10 | source=(http://ftp.gnu.org/gnu/glibc/glibc-$version.tar.xz \ | |
11 | http://www.kernel.org/pub/linux/kernel/v4.x/linux-4.14.14.tar.xz \ | |
12 | hosts resolv.conf nsswitch.conf host.conf ld.so.conf) | |
eb267740 VM |
13 | |
14 | build() { | |
15 | # install kernel headers | |
da310f23 | 16 | cd linux-4.14.14 |
eb267740 VM |
17 | make mrproper |
18 | make ARCH=arm64 headers_check | |
19 | make ARCH=arm64 INSTALL_HDR_PATH=$PKG/usr headers_install | |
20 | ||
21 | mkdir $SRC/build | |
22 | cd $SRC/build | |
ad73d1f2 | 23 | ../$name-${version:0:4}/configure --prefix=/usr \ |
eb267740 VM |
24 | --libexecdir=/usr/lib \ |
25 | --with-headers=$PKG/usr/include \ | |
26 | --enable-kernel=2.6.25 \ | |
27 | --enable-add-ons \ | |
28 | --enable-static-nss \ | |
29 | --disable-profile \ | |
30 | --disable-werror \ | |
31 | --without-gd \ | |
da310f23 VM |
32 | --enable-obsolete-rpc \ |
33 | --enable-obsolete-nsl | |
eb267740 VM |
34 | |
35 | make | |
ad73d1f2 | 36 | #make check |
eb267740 VM |
37 | make install_root=$PKG install |
38 | ||
39 | install -m 0644 $SRC/$name-$version/nscd/nscd.conf $PKG/etc | |
40 | install -d $PKG/var/{db,run}/nscd | |
41 | ||
42 | install -m 0644 $SRC/{hosts,resolv.conf,nsswitch.conf,host.conf,ld.so.conf} $PKG/etc | |
43 | ||
44 | ln -sf ../usr/share/zoneinfo/UTC $PKG/etc/localtime | |
45 | ln -s stubs-hard.h $PKG/usr/include/gnu/stubs-soft.h | |
46 | install -d $PKG/etc/ld.so.conf.d $PKG/usr/lib/locale | |
47 | touch $PKG/etc/ld.so.cache | |
48 | ||
49 | rm -rf $PKG/usr/share/{info,locale} \ | |
50 | $PKG/usr/bin/tzselect \ | |
51 | $PKG/usr/sbin/z{dump,ic} | |
52 | } |