#!/bin/sh

. config/options $1

cd $PKG_BUILD

# dialog fails to build with GOLD linker
  strip_gold

ac_cv_path_NCURSES_CONFIG="$ROOT/$TOOLCHAIN/bin/ncurses-config" \
./configure --host=$TARGET_NAME \
            --build=$HOST_NAME \
            --prefix=/usr \
            --disable-nls \
            --without-dbmalloc \
            --without-dmalloc \
            --with-ncurses \
            --disable-widec \
            --disable-rc-file \
            --disable-Xdialog \
            --disable-form \
            --disable-mixedform \
            --disable-tailbox \

make
