#!/bin/sh

. config/options $1

cd $PKG_BUILD
./configure --host=$TARGET_NAME \
            --build=$HOST_NAME \
            --prefix=/usr \
            --sysconfdir=/etc \
            --localstatedir=/var \
            --disable-static \
            --enable-shared \
            --with-gnu-ld \
            --enable-malloc0returnsnull \

make -C util CC=$HOST_CC CFLAGS="$HOST_CFLAGS -I$SYSROOT_PREFIX/usr/include" LDFLAGS="$HOST_LDFLAGS" makestrs
make
$MAKEINSTALL
