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 | |
4 | # Arch Maintainer: CRUX-ARM System Team, crux-arm at mikeux dot dyndns dot org | |
5 | # Depends on: | |
6 | ||
7 | name=glibc | |
534a14fc | 8 | version=2.10.1 |
6dca1d21 JB |
9 | release=1 |
10 | source=(ftp://ftp.gnu.org/gnu/$name/$name-$version.tar.bz2 \ | |
11 | ftp://ftp.gnu.org/gnu/$name/$name-ports-$version.tar.bz2 \ | |
534a14fc | 12 | ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.29.tar.bz2 \ |
6dca1d21 | 13 | $name-$version-cross_hacks-2.patch \ |
6dca1d21 JB |
14 | hosts resolv.conf nsswitch.conf host.conf ld.so.conf) |
15 | ||
16 | build() { | |
17 | # install build kernel headers | |
534a14fc | 18 | cd linux-2.6.29 |
6dca1d21 JB |
19 | make mrproper |
20 | make ARCH=arm headers_check | |
21 | make ARCH=arm INSTALL_HDR_PATH=$PKG/usr headers_install | |
6dca1d21 | 22 | |
534a14fc | 23 | cd $SRC |
6dca1d21 JB |
24 | mv $name-ports-$version $name-$version/ports |
25 | ||
26 | pushd $name-$version | |
6dca1d21 | 27 | patch -p1 -i $SRC/$name-$version-cross_hacks-2.patch |
6dca1d21 JB |
28 | popd |
29 | ||
30 | mkdir build | |
31 | cd build | |
534a14fc VM |
32 | |
33 | cat > config.cache << EOF | |
6dca1d21 JB |
34 | libc_cv_gnu89_inline=yes |
35 | ac_cv_sizeof_long_double=0 | |
36 | EOF | |
37 | ||
38 | ../$name-$version/configure --build=$CHOST \ | |
39 | --host=$CTARGET \ | |
40 | --prefix=/usr \ | |
41 | --libexecdir=/usr/lib \ | |
42 | --with-headers=$PKG/usr/include \ | |
43 | --with-tls \ | |
44 | --enable-kernel=2.6.0 \ | |
45 | --enable-add-ons \ | |
46 | --disable-profile \ | |
47 | --without-gd \ | |
534a14fc | 48 | --with-__thread |
6dca1d21 JB |
49 | |
50 | make CC="$CC" CFLAGS="$CFLAGS" | |
51 | make install_root=$PKG install | |
534a14fc | 52 | |
6dca1d21 JB |
53 | cp $SRC/{hosts,resolv.conf,nsswitch.conf,host.conf,ld.so.conf} $PKG/etc |
54 | ln -sf ../usr/share/zoneinfo/UTC $PKG/etc/localtime | |
55 | mkdir -p $PKG/etc/ld.so.conf.d $PKG/usr/lib/locale | |
56 | ||
57 | # conflicts with quota | |
534a14fc | 58 | rm $PKG/usr/include/rpcsvc/{rquota.x,rquota.h} |
6dca1d21 JB |
59 | rm -rf $PKG/usr/share/{info,locale} |
60 | } |