From 857fac08cb249564bfcdb79b43b28d1be0433e2d Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Tue, 5 Jul 2011 13:25:20 -0400 Subject: Sync recipe stuff from rootfs tree --- 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..e3af038 --- /dev/null +++ b/recipe.d/0013-sqlite @@ -0,0 +1,22 @@ + ##################################################### + # sqlite is choking on sqlite_int64 definition + ##################################################### + mcd $BUILDDIR/sqlite + export CFLAGS="$RPM_OPT_FLAGS -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" + $SRC/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 ../../rpmbuild/BUILD/sqlite-src-3070500/tool/mksqlite3h.tcl ../../rpmbuild/BUILD/sqlite-src-3070500 > sqlite3.h + cp ../../rpmbuild/BUILD/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 $J + make $J install + -- cgit