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