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