1 # hdw - linux toolchain glibc package
3 # author: hackbard@hackdaworld.dyndns.org
7 # [D] glibc-2.3.5.tar.bz2 ftp://sources.redhat.com/pub/glibc/releases/
8 # [D] glibc-linuxthreads-2.3.5.tar.bz2 ftp://sources.redhat.com/pub/glibc/releases/
9 ## [D] glibc.tar.bz2 cvs:anoncvs:sources.redhat.com:cvs/glibc:libc
11 kernver=`grep '^#\ \[V\]' $confdir/../linux/linux | awk '{ print $3 }'`
12 kernver=`echo $kernver | awk -F. '{ print $1 "." $2 }'`
14 [ "$ver" = "cvs" ] && extraver=""
16 confopt="$confopt --enable-add-ons --disable-profile"
17 confopt="$confopt --without-cvs --without-gd --without-selinux"
18 confopt="$confopt --with-headers=$prefix/include --enable-kernel=$kernver"
19 confopt="$confopt --with-binutils=$prefix/bin"
24 # create and change to seperated build directory
25 mkdir -p ../glibc-build &&
28 # configure and prepare Makefile
29 ../glibc${extraver}/configure $confopt
32 touch $prefix/etc/ld.so.conf
34 # build and install ...