#!/bin/sh

. config/options $1

setup_toolchain host

cd $PKG_BUILD
gl_cv_func_gettimeofday_clobber=no \
./configure --host=$HOST_NAME \
            --build=$HOST_NAME \
            --target=$TARGET_NAME \
            --prefix=$ROOT/$TOOLCHAIN \

make
make install
make prefix=$SYSROOT_PREFIX/usr install
