#!/bin/bash

cd $BLDDIR
rm -rf gmp-$GMP_VER
tar -xf $SRCDIR/gmp-$GMP_VER.tar.bz2
cd gmp-$GMP_VER

CFLAGS="-march=${CHFS_HOST%%-*} -mtune=generic" \
CPPFLAGS="-fexceptions -march=i686 -mtune=generic" ./configure \
    --build=$CHFS_HOST \
    --prefix=/cross-tools --enable-cxx
make
make install

cd $ROOT
