#!/bin/sh

. config/options $1

$SCRIPTS/unpack libtool

setup_toolchain host

cd $BUILD/libtool*

mkdir -p .objdir-host && cd .objdir-host

../configure --host=$HOST_NAME \
             --build=$HOST_NAME \
             --target=$TARGET_NAME \
             --prefix=$ROOT/$TOOLCHAIN \
             --enable-shared \
             --disable-static \

make
make install
