#
# author: hackbard@hackdaworld.dyndns.org
#
-# [V] cvs
+# [V] 2.3.5
# [S] 2-3
-## [D] glibc-2.3.2.tar.bz2 ftp://sources.redhat.com/pub/glibc/releases/
-# [D] glibc.tar.bz2 cvs:anoncvs:sources.redhat.com:cvs/glibc:libc
+# [D] glibc-2.3.5.tar.bz2 ftp://sources.redhat.com/pub/glibc/releases/
+# [D] glibc-linuxthreads-2.3.5.tar.bz2 ftp://sources.redhat.com/pub/glibc/releases/
srcdir=libc
+kernver=`grep '^#\ \[V\]' $confdir/../linux/linux | awk '{ print $3 }'`
extraver="-${ver}"
[ "$ver" = "cvs" ] && extraver=""
-confopt="$confopt --enable-add-ons=nptl --disable-profile --with-tls"
-confopt="$confopt --libexecdir=$root/tmp/pt_chown --without-cvs"
-confopt="$confopt --with-headers=/${s1_prefix}/glibc-kernheaders"
+confopt="$confopt --enable-add-ons --disable-profile"
+confopt="$confopt --libexecdir=$prefix/lib/glibc --without-cvs"
+confopt="$confopt --enable-kernel=$kernver"
pre_install() {
echo "creating some files needed for build ..."
mkdir -p $prefix/etc
[ ! -f $root/etc/ld.so.conf ] && touch $root/etc/ld.so.conf
- [ ! -c /dev/null ] && mknod -m 0666 /dev/null c 1 3
+ [ ! -c $root/dev/null ] && mknod -m 0666 $root/dev/null c 1 3
echo "done (file creating)"
}