#!/bin/sh

. config/options $1

LDFLAGS="$LDFLAGS -fwhole-program"

cd $PKG_BUILD
./configure --host=$TARGET_NAME \
            --build=$HOST_NAME \
            --prefix=/usr \
            --sysconfdir=/etc \
            --localstatedir=/var \
            --x-includes=$SYSROOT_PREFIX/usr/include \
            --x-libraries=$SYSROOT_PREFIX/usr/lib \
            --disable-debug \
            --disable-history \
            --with-xterm=rxvt \
            --with-xft \
            --with-x

make
