]> www.hackdaworld.org Git - hdw-linux/hdw-linux.git/blob - packages/toolchain/glibc/glibc
major changes to improve toolchain and crossbuild concept, still in devel!
[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] cvs
6 # [S] 0-3
7 ## [D] glibc-2.3.2.tar.bz2 ftp://sources.redhat.com/pub/glibc/releases/
8 ## [D] glibc-linuxthreads-2.3.2.tar.bz2 ftp://sources.redhat.com/pub/glibc/releases/
9 # [D] glibc.tar.bz2 cvs:anoncvs:sources.redhat.com:cvs/glibc:libc
10
11 srcdir=libc
12 extraver="-${ver}"
13 [ "$ver" = "cvs" ] && extraver=""
14
15 confopt=${confopt//--host* /--host=$hdw_arch_build }
16 confopt="$confopt --enable-add-ons=nptl --disable-profile --with-tls"
17 confopt="$confopt --without-cvs --without-gd"
18 confopt="$confopt --with-headers=$prefix/glibc-kernheaders"
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         ../${srcdir}${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                 }