toolchain modoifications
[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.3.6
6 # [S] 0-3
7 # [D] glibc-2.3.6.tar.bz2 ftp://sources.redhat.com/pub/glibc/releases/
8 # [D] glibc-linuxthreads-2.3.6.tar.bz2 ftp://sources.redhat.com/pub/glibc/releases/
9 ## [D] glibc.tar.bz2 cvs:anoncvs:sources.redhat.com:cvs/glibc:libc
10
11 kernver=`grep '^#\ \[V\]' $confdir/../linux/linux | awk '{ print $3 }'`
12 kernver=`echo $kernver | awk -F. '{ print $1 "." $2 }'`
13 extraver="-${ver}"
14 [ "$ver" = "cvs" ] && extraver=""
15
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"
20
21 unset CFLAGS
22
23 build_main()    {
24         # create and change to seperated build directory
25         mkdir -p ../glibc-build &&
26         cd ../glibc-build
27
28         # configure and prepare Makefile
29         ../glibc${extraver}/configure $confopt
30
31         mkdir -p $prefix/etc
32         touch $prefix/etc/ld.so.conf
33
34         # build and install ...
35         make &&
36         make install
37                 }