toolchain:scripts:enleve les options quiet
[glg-lfs.git] / toolchain / scripts / Binutils-2.23.1-Pass_1
blob91c3c55b89002c7f61e02256bf6ede39a5c03987
1 #!/bin/bash
3 pkgname="binutils-2.23.1"
4 archive="$pkgname".tar.bz2
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 mkdir -v "$pkgname"-build
17 cd "$pkgname"-build
19 echo "======> exécution du script de configuration"
21 ../$pkgname/configure --prefix=/tools \
22 --with-sysroot=$LFS \
23 --with-lib-path=/tools/lib \
24 --target=$LFS_TGT \
25 --disable-nls \
26 --disable-werror
28 echo "======> compilation de $pkgname"
29 make $make_flags
31 echo "======> crÃation des liens symboliques"
32 case $(uname -m) in
33 x86_64) mkdir -v /tools/lib && ln -sv lib /tools/lib64 ;;
34 esac
36 echo "======> installation de $pkgname"
37 make install
39 echo "======> supression du rÃpertoire" "$pkgname"-build
40 cd ../
41 rm -rf "$pkgname"-build
43 echo "======> supression du rÃpertoire $pkgname"
44 rm -rf "$pkgname"
46 echo "======> compilation et installation de $pkgname reussi"
47 exit 0