#!/bin/sh

. config/options

$SCRIPTS/build toolchain
$SCRIPTS/unpack glib

setup_toolchain host

cd $BUILD/glib*

mkdir -p .build-host

cd .build-host
../configure --prefix=$ROOT/$TOOLCHAIN \
             --enable-shared \
             --disable-static \
             --with-libiconv=no \
             --enable-debug=no \
             --disable-man \
             --disable-rebuilds \
             --disable-gtk-doc \

make
make install

cp -f gobject/.libs/glib-genmarshal $ROOT/$TOOLCHAIN/bin
cp -f gobject/glib-mkenums $ROOT/$TOOLCHAIN/bin
