#!/bin/bash

#Make a clean build
if [ -e Makefile ];
then
    make -j10 distclean
fi;

export PATH=$PATH:/usr/include/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:~/android/ndk/platforms/android-14/arch-arm/usr/lib:~/android/ndk/platforms/android-14/arch-arm/usr/include;
export LIBRARY_PATH=/usr/lib/x86_64-linux-gnu;
export CPATH=/usr/include/x86_64-linux-gnu;

#Make a clean install always
if [ -d /tmp/arm-linux-androideabi ]
then
    rm -rf /tmp/arm-linux-androideabi
fi;

#Build Configuration
./configure --prefix=/tmp/arm-linux-androideabi --target=arm-linux-androideabi --host=x86_64-linux-gnu --build=x86_64-linux-gnu --program-transform-name='s&^&arm-linux-androideabi-&' --with-gcc-version=SaberMod --with-binutils-version=2.21 --with-gold-version=2.21 --enable-gold=default --enable-plugins --with-gmp-version=4.3.2 --with-mpfr-version=2.4.2 --with-gdb-version=7.3.x --with-sysroot=/ --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --enable-threads=posix --disable-libatomic

#Build the toolchain
make -j10;

#Install the toolchain twice to make sure everything gets installed
make install;


Add a script specifically for gcc 4.8
Add a script specifically for gcc 4.8

Change-Id: Icf7dfc794a5325587e5dc9beccb4d22913be4904
Signed-off-by: Paul Beeler <87b448aca7c29b53e336f8bdc7cc0dff3784612b@gmail.com>
