Improve installation of tools and libraries
[yari.git] / xtools / BUILD-binutils.sh
blob846e7cbacf74d5954cd29693ce19a175c79f0f9f
1 #!/bin/bash
3 . BUILD-config
5 download http://ftp.gnu.org/gnu/binutils $binutilsdist.tar.bz2
6 rm -rf $builddir-binutils
7 mkdir -p $builddir-binutils
8 cd $builddir-binutils
10 # Untar
11 tar -xjf $GNUsrc/$binutilsdist.tar.bz2
13 # Binutils-2.18 is very old and autoconfigure was broken. Fix it
14 #patch -p0 < $srcroot/binutils-2.18.patch
16 # configure, make and install binutils
17 mkdir -p build-binutils
18 cd build-binutils
19 ../$binutilsdist/configure \
20 --target=$target \
21 --prefix=$install_prefix \
22 --with-gnu-as \
23 --with-gnu-ld
25 make $make_option
26 $sudo make install
27 cd ..