Commit | Line | Data |
---|---|---|
5c8665cf | 1 | # Description: The C library used in the GNU system |
faf70421 JB |
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: | |
5c8665cf JB |
6 | |
7 | name=glibc | |
a003d4e0 VM |
8 | version=2.16.0 |
9 | release=1 | |
10 | source=(http://ftp.gnu.org/gnu/glibc/glibc-$version.tar.xz \ | |
11 | ftp://ftp.kernel.org/pub/linux/kernel/v3.x/linux-3.4.11.tar.bz2 \ | |
12 | http://ftp.gnu.org/gnu/$name/$name-ports-$version.tar.bz2 \ | |
13 | hosts resolv.conf nsswitch.conf host.conf ld.so.conf \ | |
14 | $name-resolv_assert.patch \ | |
15 | $name-strtod_integer_overflow.patch) | |
5c8665cf JB |
16 | |
17 | build() { | |
a003d4e0 VM |
18 | # install kernel headers |
19 | cd linux-3.4.11 | |
20 | make mrproper | |
21 | make ARCH=arm headers_check | |
22 | make ARCH=arm INSTALL_HDR_PATH=$PKG/usr headers_install | |
23 | ||
24 | cd $SRC | |
25 | mv $name-ports-$version $name-$version/ports | |
26 | ||
27 | pushd $name-$version | |
28 | patch -p1 -i $SRC/$name-resolv_assert.patch | |
29 | patch -p1 -i $SRC/$name-strtod_integer_overflow.patch | |
30 | popd | |
31 | ||
32 | mkdir $SRC/build | |
33 | cd $SRC/build | |
34 | ||
35 | ../$name-$version/configure --prefix=/usr \ | |
36 | --build=arm-unknown-linux-gnueabi \ | |
37 | --libexecdir=/usr/lib \ | |
38 | --with-headers=$PKG/usr/include \ | |
39 | --with-tls \ | |
40 | --enable-kernel=2.6.25 \ | |
41 | --enable-add-ons \ | |
42 | --disable-profile \ | |
43 | --without-gd \ | |
44 | --enable-obsolete-rpc | |
45 | ||
46 | make | |
47 | make install_root=$PKG install | |
48 | ||
49 | cp $SRC/{hosts,resolv.conf,nsswitch.conf,host.conf,ld.so.conf} $PKG/etc | |
50 | ln -sf ../usr/share/zoneinfo/UTC $PKG/etc/localtime | |
51 | mkdir -p $PKG/etc/ld.so.conf.d $PKG/usr/lib/locale | |
52 | touch $PKG/etc/ld.so.cache | |
53 | ||
54 | rm -rf $PKG/usr/share/{info,locale} \ | |
55 | $PKG/usr/bin/tzselect \ | |
56 | $PKG/usr/sbin/z{dump,ic} | |
5c8665cf | 57 | } |