Commit | Line | Data |
---|---|---|
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 | ||
7 | name=glibc | |
926ec4c9 | 8 | version=2.27 |
5895156a | 9 | release=1 |
926ec4c9 VM |
10 | source=(http://ftpmirror.gnu.org/gnu/glibc/glibc-$version.tar.xz \ |
11 | https://www.kernel.org/pub/linux/kernel/v4.x/linux-4.14.14.tar.xz \ | |
6dca1d21 JB |
12 | hosts resolv.conf nsswitch.conf host.conf ld.so.conf) |
13 | ||
14 | build() { | |
15 | # install build kernel headers | |
926ec4c9 | 16 | cd linux-4.14.14 |
6dca1d21 | 17 | make mrproper |
3e713c38 VM |
18 | make ARCH=arm64 headers_check |
19 | make ARCH=arm64 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 | 27 | libc_cv_forced_unwind=yes |
6dca1d21 JB |
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 \ | |
eb94b6d4 | 36 | --enable-kernel=2.6.25 \ |
6dca1d21 JB |
37 | --enable-add-ons \ |
38 | --disable-profile \ | |
39 | --without-gd \ | |
eb94b6d4 | 40 | --with-__thread \ |
926ec4c9 VM |
41 | --enable-obsolete-rpc \ |
42 | --enable-obsolete-nsl | |
6dca1d21 JB |
43 | |
44 | make CC="$CC" CFLAGS="$CFLAGS" | |
45 | make install_root=$PKG install | |
534a14fc | 46 | |
6dca1d21 JB |
47 | cp $SRC/{hosts,resolv.conf,nsswitch.conf,host.conf,ld.so.conf} $PKG/etc |
48 | ln -sf ../usr/share/zoneinfo/UTC $PKG/etc/localtime | |
fd647173 | 49 | ln -s stubs-hard.h $PKG/usr/include/gnu/stubs-soft.h |
6dca1d21 JB |
50 | mkdir -p $PKG/etc/ld.so.conf.d $PKG/usr/lib/locale |
51 | ||
eb94b6d4 VM |
52 | rm -rf $PKG/usr/share/{info,locale} \ |
53 | $PKG/usr/bin/tzselect \ | |
54 | $PKG/usr/sbin/z{dump,ic} | |
6dca1d21 | 55 | } |