1 # hdw - linux 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/
11 kernver=`grep '^#\ \[V\]' $confdir/../linux/linux | awk '{ print $3 }'`
13 [ "$ver" = "cvs" ] && extraver=""
15 confopt="$confopt --enable-add-ons --disable-profile"
16 confopt="$confopt --libexecdir=$prefix/lib/glibc --without-cvs"
17 confopt="$confopt --enable-kernel=$kernver"
20 echo "creating some files needed for build ..."
22 [ ! -f $root/etc/ld.so.conf ] && touch $root/etc/ld.so.conf
23 [ ! -c $root/dev/null ] && mknod -m 0666 $root/dev/null c 1 3
24 echo "done (file creating)"
28 # create and change to seperated build directory
29 mkdir -p ../glibc-build &&
32 # configure and prepare Makefile
33 ../${srcdir}${extraver}/configure $confopt
36 make && make install && make localedata/install-locales