#!/bin/sh

. config/options $1

# sqlite fails to compile with fast-math link time optimization.
  CFLAGS=`echo $CFLAGS | sed -e "s|-ffast-math||"`

cd $PKG_BUILD
./configure --host=$TARGET_NAME \
            --build=$HOST_NAME \
            --prefix=/usr \
            --sysconfdir=/etc \
            --disable-static \
            --enable-shared \
            --disable-readline \
            --enable-threadsafe \
            --enable-dynamic-extensions \
            --with-gnu-ld


make

$STRIP .libs/sqlite3

$MAKEINSTALL
