From 69dd99f961988fa15da8d7f0d63b62f3385419c3 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Fri, 22 Mar 2013 16:47:17 -0700 Subject: Initial commit of a Slackware cross-arch bootstrap framework. --- recipe.d/0013-sqlite | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 recipe.d/0013-sqlite (limited to 'recipe.d/0013-sqlite') diff --git a/recipe.d/0013-sqlite b/recipe.d/0013-sqlite new file mode 100644 index 0000000..155630a --- /dev/null +++ b/recipe.d/0013-sqlite @@ -0,0 +1,22 @@ + ##################################################### + # sqlite is choking on sqlite_int64 definition + ##################################################### + mcd $BUILDDIR/sqlite + export CFLAGS="$SLKCFLAGS -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_DISABLE_DIRSYNC=1 -DSQLITE_ENABLE_RTREE=1 -DSQLITE_SECURE_DELETE=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY=1 -Wall -fno-strict-aliasing" + $SLACKSOURCE/sqlite/sqlite-*/configure --disable-tcl --enable-threadsafe --enable-threads-override-locks --enable-load-extension $TCONFIGARGS + # the compile would fail here, so on a host you need to run + # tclsh $SLACKSOURCE/sqlite/sqlite-src-*/tool/mksqlite3h.tcl $SLACKSOURCE/sqlite/sqlite-src-* > sqlite3.h + cp $SLACKSOURCE/sqlite/sqlite-src-*/sqlite3.h.stage1 sqlite3.h + + # Also possibly add -ldl to TLIB in the Makefile + if egrep '^TLIBS.*ldl' Makefile > /dev/null + then + true + else + sed 's/^\(TLIBS = .*\)/\1 -ldl/' Makefile > Makefile.stage2 + mv Makefile.stage2 Makefile + fi + + make $NUMJOBS + make $NUMJOBS install + -- cgit v1.2.3-65-gdbad