several changes to toolchain packages
[hdw-linux/hdw-linux.git] / packages / toolchain / glibc / glibc
index 7653346..7939b98 100644 (file)
@@ -2,20 +2,19 @@
 #
 # author: hackbard@hackdaworld.dyndns.org
 #
-# [V] cvs
+# [V] 2.5
 # [S] 0-3
-## [D] glibc-2.3.2.tar.bz2 ftp://sources.redhat.com/pub/glibc/releases/
-## [D] glibc-linuxthreads-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.5.tar.bz2 ftp://sources.redhat.com/pub/glibc/releases/
+## [D] glibc.tar.bz2 cvs:anoncvs:sources.redhat.com:cvs/glibc:libc
 
-srcdir=libc
+kernver=`grep '^#\ \[V\]' $confdir/../linux/linux | awk '{ print $3 }'`
+kernver=`echo $kernver | awk -F. '{ print $1 "." $2 }'`
 extraver="-${ver}"
 [ "$ver" = "cvs" ] && extraver=""
 
-confopt=${confopt//--host* /--host=$hdw_arch_build }
-confopt="$confopt --enable-add-ons=nptl --disable-profile --with-tls"
-confopt="$confopt --without-cvs --without-gd"
-confopt="$confopt --with-headers=$prefix/glibc-kernheaders"
+confopt="$confopt --enable-add-ons --disable-profile"
+confopt="$confopt --without-cvs --without-gd --without-selinux"
+confopt="$confopt --with-headers=$prefix/include --enable-kernel=$kernver"
 confopt="$confopt --with-binutils=$prefix/bin"
 
 unset CFLAGS
@@ -26,9 +25,9 @@ build_main()  {
        cd ../glibc-build
 
        # configure and prepare Makefile
-       ../${srcdir}${extraver}/configure $confopt
+       ../glibc${extraver}/configure $confopt
 
-       mkdir -p $prefix/etc
+       mkdir -pv $prefix/etc
        touch $prefix/etc/ld.so.conf
 
        # build and install ...