#!/bin/sh

. config/options $1

$SCRIPTS/build gmp
$SCRIPTS/build mpfr

setup_toolchain host

cd $PKG_BUILD
mkdir -p objdir
cd objdir
../configure --host=$HOST_NAME \
             --build=$HOST_NAME \
             --target=$TARGET_NAME \
             --prefix=$ROOT/$TOOLCHAIN \
             --enable-shared \
             --disable-static \
             --with-gmp="$ROOT/$TOOLCHAIN" \
             --with-mpfr="$ROOT/$TOOLCHAIN" \

make
make install
