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 | |
8 | version=2.12.2 | |
9 | release=2 | |
10 | source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.xz \ | |
11 | http://ftp.gnu.org/gnu/$name/$name-ports-2.12.1.tar.bz2 \ | |
12 | http://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.35.tar.gz \ | |
13 | glibc-ignore_origin.patch \ | |
14 | Optimize-__getpagesize-a-bit.patch \ | |
15 | hosts resolv.conf nsswitch.conf host.conf ld.so.conf) | |
16 | ||
17 | build() { | |
18 | # install kernel headers | |
19 | cd linux-2.6.35 | |
20 | make mrproper | |
21 | make ARCH=arm headers_check | |
22 | make ARCH=arm INSTALL_HDR_PATH=$PKG/usr headers_install | |
23 | ||
24 | mv $SRC/$name-ports-2.12.1 $SRC/$name-$version/ports | |
25 | ||
26 | patch -d $SRC/$name-$version -R -p1 -i $SRC/Optimize-__getpagesize-a-bit.patch | |
27 | patch -d $SRC/$name-$version -p1 -i $SRC/$name-ignore_origin.patch | |
28 | ||
29 | mkdir $SRC/build | |
30 | cd $SRC/build | |
31 | ||
32 | ../$name-$version/configure --prefix=/usr \ | |
33 | --build=arm-crux-linux-gnueabi \ | |
34 | --libexecdir=/usr/lib \ | |
35 | --with-headers=$PKG/usr/include \ | |
36 | --with-tls \ | |
37 | --enable-kernel=2.6.0 \ | |
38 | --enable-add-ons \ | |
39 | --disable-profile \ | |
40 | --without-gd | |
41 | ||
42 | make CFLAGS="$CFLAGS -msoft-float" | |
43 | make install_root=$PKG install | |
44 | ||
45 | cp $SRC/{hosts,resolv.conf,nsswitch.conf,host.conf,ld.so.conf} $PKG/etc | |
46 | ln -sf ../usr/share/zoneinfo/UTC $PKG/etc/localtime | |
47 | mkdir -p $PKG/etc/ld.so.conf.d $PKG/usr/lib/locale | |
48 | touch $PKG/etc/ld.so.cache | |
49 | ||
50 | rm -rf $PKG/usr/share/{info,locale} | |
51 | } |