Actions

Difference between revisions of "Sqlite"

From RonWareWiki

Line 22: Line 22:
 
fi
 
fi
  
if  configure --disable-tcl --enable-threadsafe CFLAGS="-O3 -s"  
+
if  configure --disable-tcl --enable-threadsafe CFLAGS="-O3 -s -mtune=i686 -fomit-frame-pointer -fmerge-all-constants"  
 
then
 
then
 
echo "Building SQLITE"
 
echo "Building SQLITE"

Revision as of 09:26, 13 January 2009


I use the excellent SQLite relational database for all sorts of projects. My vim setup as well as my Reva Forth utilize it.

Here is a script I created to help me rebuild SQLite as new versions are available. The script runs on Windows using the 'MSys' bash shell:

  1. !/bin/sh

tarfile=`ls -t sqlite*.tar.gz|head -n 1` tardir=`echo ${tarfile}|sed -e's/.tar.gz//'`

if [ "$tardir" == "" ] then # no tar directory echo "We are presumably in the tar directory already" pushd . else # unpack the tar tar xzvf $tarfile pushd $tardir fi

if configure --disable-tcl --enable-threadsafe CFLAGS="-O3 -s -mtune=i686 -fomit-frame-pointer -fmerge-all-constants" then echo "Building SQLITE" if gmake sqlite3.dll then upx --best sqlite3.dll cp sqlite3.dll /c/rw/vim7/bin/sqlite3.dll cp sqlite3.dll /c/rw/reva/bin/sqlite3.dll else echo "Could not build the DLL, sorry." fi else echo "Could not configure, sorry." fi

popd