diff options
author | DJ Delorie <dj@delorie.com> | 2011-07-05 13:25:20 -0400 |
---|---|---|
committer | DJ Delorie <dj@delorie.com> | 2011-07-05 13:25:20 -0400 |
commit | 857fac08cb249564bfcdb79b43b28d1be0433e2d (patch) | |
tree | 9ed67fb4ab841c589a5196fa1a277d7be246f6b7 /recipe.d/0013-sqlite | |
parent | 2d1dd4c1de34258a29caa448e9c5cceb90a793b4 (diff) | |
download | bootstrap.git.DONOTUSE-857fac08cb249564bfcdb79b43b28d1be0433e2d.tar.gz bootstrap.git.DONOTUSE-857fac08cb249564bfcdb79b43b28d1be0433e2d.tar.xz bootstrap.git.DONOTUSE-857fac08cb249564bfcdb79b43b28d1be0433e2d.zip |
Sync recipe stuff from rootfs tree
Diffstat (limited to 'recipe.d/0013-sqlite')
-rw-r--r-- | recipe.d/0013-sqlite | 22 |
1 files changed, 22 insertions, 0 deletions
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 + |