several changes to toolchain packages
[hdw-linux/hdw-linux.git] / packages / toolchain / glibc / glibc
1 # hdw - linux toolchain glibc package
2 #
3 # author: hackbard@hackdaworld.dyndns.org
4 #
5 # [V] 2.5
6 # [S] 0-3
7 # [D] glibc-2.5.tar.bz2 ftp://sources.redhat.com/pub/glibc/releases/
8 ## [D] glibc.tar.bz2 cvs:anoncvs:sources.redhat.com:cvs/glibc:libc
9
10 kernver=`grep '^#\ \[V\]' $confdir/../linux/linux | awk '{ print $3 }'`
11 kernver=`echo $kernver | awk -F. '{ print $1 "." $2 }'`
12 extraver="-${ver}"
13 [ "$ver" = "cvs" ] && extraver=""
14
15 confopt="$confopt --enable-add-ons --disable-profile"
16 confopt="$confopt --without-cvs --without-gd --without-selinux"
17 confopt="$confopt --with-headers=$prefix/include --enable-kernel=$kernver"
18 confopt="$confopt --with-binutils=$prefix/bin"
19
20 unset CFLAGS
21
22 build_main()    {
23         # create and change to seperated build directory
24         mkdir -p ../glibc-build &&
25         cd ../glibc-build
26
27         # configure and prepare Makefile
28         ../glibc${extraver}/configure $confopt
29
30         mkdir -pv $prefix/etc
31         touch $prefix/etc/ld.so.conf
32
33         # build and install ...
34         make &&
35         make install
36                 }