#!/bin/sh

. config/options $1

setup_toolchain host

cd $PKG_BUILD
./configure --enable-shared \
            --disable-static \
            --with-gnu-ld

make

mkdir -p $ROOT/$TOOLCHAIN/bin
  cp pkg-config $ROOT/$TOOLCHAIN/bin

mkdir -p $SYSROOT_PREFIX/usr/share/aclocal
  cp pkg.m4 $SYSROOT_PREFIX/usr/share/aclocal
