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 | |
8 | version=2.13 | |
9 | release=1 | |
10 | source=(http://ftp.gnu.org/gnu/glibc/glibc-$version.tar.xz \ | |
11 | ftp://ftp.gnu.org/gnu/$name/$name-ports-$version.tar.bz2 \ | |
12 | ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.35.6.tar.gz \ | |
13 | glibc-ignore_origin.patch \ | |
14 | Optimize-__getpagesize-a-bit.patch \ | |
15 | $name-$version-gnueabihf.patch \ | |
16 | $name-$version-prelink.patch \ | |
17 | hosts resolv.conf nsswitch.conf host.conf ld.so.conf) | |
18 | ||
19 | build() { | |
20 | # install build kernel headers | |
21 | cd linux-2.6.35.6 | |
22 | make mrproper | |
23 | make ARCH=arm headers_check | |
24 | make ARCH=arm INSTALL_HDR_PATH=$PKG/usr headers_install | |
25 | ||
26 | cd $SRC | |
27 | mv $name-ports-$version $name-$version/ports | |
28 | ||
29 | pushd $name-$version | |
30 | patch -p1 -i $SRC/$name-$version-gnueabihf.patch | |
31 | patch -p1 -i $SRC/$name-$version-prelink.patch | |
32 | patch -R -p1 -i $SRC/Optimize-__getpagesize-a-bit.patch | |
33 | patch -p1 -i $SRC/$name-ignore_origin.patch | |
34 | popd | |
35 | ||
36 | mkdir build | |
37 | cd build | |
38 | ||
39 | ../$name-$version/configure --prefix=/usr \ | |
68160bd8 | 40 | --build=arm-unknown-linux-gnueabihf \ |
34fed911 VM |
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 \ | |
48 | --with-__thread | |
49 | ||
50 | make | |
51 | #make check | |
52 | make install_root=$PKG install | |
53 | ||
54 | cp $SRC/{hosts,resolv.conf,nsswitch.conf,host.conf,ld.so.conf} $PKG/etc | |
55 | ln -sf ../usr/share/zoneinfo/UTC $PKG/etc/localtime | |
56 | mkdir -p $PKG/etc/ld.so.conf.d $PKG/usr/lib/locale | |
57 | ||
58 | rm -rf $PKG/usr/share/{info,locale} | |
59 | } |