toolchain:scripts:enleve les options quiet
[glg-lfs.git] / toolchain / scripts / Glibc-2.17
blob6425bf9ab9c5223dd1354318bd0b37fce0df4add
1 #!/bin/bash
3 pkgname=glibc-2.17
4 archive="$pkgname".tar.xz
5 tar_flags="-xJf"
6 make_flags="--jobs=4 "
8 set -u
9 set -e
11 cd $LFS/sources
13 echo "======> extraction de l'archive $archive"
14 tar "$tar_flags" "$archive"
16 cd $pkgname
18 echo "======> verification des entetes RPC"
19 if [ ! -r /usr/include/rpc/types.h ]; then
20 su -c 'mkdir -p /usr/include/rpc'
21 su -c 'cp sunrpc/rpc/*.h /usr/include/rpc'
24 cd ../
26 mkdir -v "$pkgname"-build
27 cd "$pkgname"-build
29 echo "======> exe©cution du script de configuration"
30 ../"$pkgname"/configure \
31 --prefix=/tools \
32 --host=$LFS_TGT \
33 --build=$(../$pkgname/scripts/config.guess) \
34 --disable-profile \
35 --enable-kernel=2.6.25 \
36 --with-headers=/tools/include \
37 libc_cv_forced_unwind=yes \
38 libc_cv_ctors_header=yes \
39 libc_cv_c_cleanup=yes
41 echo "======> compilation de $pkgname"
42 make $make_flags
44 echo "======> installation de $pkgname"
45 make install
47 echo "======> verification de la toolchain"
48 echo 'main(){}' > dummy.c
49 $LFS_TGT-gcc dummy.c
50 readelf -l a.out | grep ': /tools'
52 echo "======> supression du repertoire" "$pkgname"-build
53 cd ../
54 rm -rf "$pkgname"-build
56 echo "======> supression du rÃpertoire $pkgname"
57 rm -rf "$pkgname"
59 echo "======> compilation et installation de $pkgname reussi"
60 exit 0