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 | |
49c8186d | 8 | version=2.22 |
dce3ae08 | 9 | release=2 |
4551f658 | 10 | source=(http://ftp.gnu.org/gnu/glibc/glibc-$version.tar.xz \ |
3e713c38 | 11 | http://ftp.kernel.org/pub/linux/kernel/v4.x/linux-4.1.tar.xz \ |
6dca1d21 JB |
12 | hosts resolv.conf nsswitch.conf host.conf ld.so.conf) |
13 | ||
14 | build() { | |
15 | # install build kernel headers | |
49c8186d | 16 | cd linux-4.1 |
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 VM |
40 | --with-__thread \ |
41 | --enable-obsolete-rpc | |
6dca1d21 JB |
42 | |
43 | make CC="$CC" CFLAGS="$CFLAGS" | |
44 | make install_root=$PKG install | |
534a14fc | 45 | |
6dca1d21 JB |
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 | |
fd647173 | 48 | ln -s stubs-hard.h $PKG/usr/include/gnu/stubs-soft.h |
6dca1d21 JB |
49 | mkdir -p $PKG/etc/ld.so.conf.d $PKG/usr/lib/locale |
50 | ||
eb94b6d4 VM |
51 | rm -rf $PKG/usr/share/{info,locale} \ |
52 | $PKG/usr/bin/tzselect \ | |
53 | $PKG/usr/sbin/z{dump,ic} | |
6dca1d21 | 54 | } |